FabSim requires the following Python modules:
- PyYaml
- Fabric (version 1.5.3 and 1.10.0 have worked OK for us)
You can install them any way you like. Most people prefer pip
, although you could also choose to use easy_install
.
- Clone the code from the GitHub repository.
- The 'fab' command, which comes with Fabric, needs to be usable directly from the command line. You can make it usable by ensuring that the command resides in your
$PATH
environment. - Copy
machines_user_example.yml
in thedeploy/
subdirectory tomachines_user.yml
. Modify its contents so that it matches with your local settings. For first (local) testing, one must change the settings under the sectionsdefault:
andlocalhost:
so as to update the paths of FabSim directory and lammps executable respectively.
- Install LAMMPS (see http://lammps.sandia.gov for detailed download and installation instructions).
- Modify
machines_user.yml
to make thelammps_exec
variable point to the location of the LAMMPS executable. e.g.,lammps_exec: "/home/james/bin/lmp_serial"
. - FabSim contains a trial LAMMPS configuration, so there's no need to download that.
- (first time use only) Create the required FabSim directory using the following command:
fab localhost setup_fabric_dirs
. - Run the LAMMPS test data set using:
fab localhost lammps:lammps_lj_liquid,cores=1,wall_time=1:00:0
. - You can find the output of your job in the results directory. By default this will be a subdirectory in
~/FabSim/results
.
- Install NAMD (required just for local host).
- Modify
machines_user.yml
to make thenamd_exec
variable point to the location of the NAMD executable. e.g.,namd_exec: "/home/james/bin/namd/2.9"
(This needs to be done individually for all local or remote hosts). - FabSim contains a trial NAMD configuration, so there's no need to download that.
- Run the NAMD test data set using:
fab machine_name namd:namd_toy_model,cores=x,wall_time=y
, where you can choose the values of x and y depending on your machine. - You can find the output of your job in the results directory. By default this will be a subdirectory in
~/FabSim/results
.
- Ensure that you have modified
machines_user.yml
to contain correct information for your target machine.