Thursday Exercise 1.3: Try an OSG Connect Software Module

In this exercise, you'll use a software package called GROMACS that was already installed on OASIS. GROMACS is a molecular dynamics simulation program.

Setup

Practice Loading the GROMACS Module on OSG Connect submit host

Before proceeding, make sure to read over the OSG Connect help desk guide on Accessing Software using Distributed Environment Modules.

  1. Run the module avail command to see available modules and determine which gromacs version will be the default (designated by a (D)).

  2. Before loading the gromacs module, check your "PATH" variable with:

%UCL_PROMPT_SHORT% <strong>echo $PATH</strong>
  1. Now load the gromacs module, which will give you the default version, and check your list of modules:
%UCL_PROMPT_SHORT% <strong>module load gromacs</strong>
%UCL_PROMPT_SHORT% <strong>module list</strong>
  1. Recheck your "PATH" variable. What has changed? Is the default version of gromacs visible?

  2. When you're done, unload the module and check that you no longer have the module loaded:

%UCL_PROMPT_SHORT% <strong>module unload gromacs</strong>
%UCL_PROMPT_SHORT% <strong>module list</strong>
%UCL_PROMPT_SHORT% <strong>echo $PATH</strong>

Submit a job that uses GROMACS from OASIS

Now let us see how to do a job submission on the OSG that uses GROMACS on OASIS (you don't have to transfer GROMACS source or the binary along with the job).

We will get the example files using the tutorial command.

%UCL_PROMPT_SHORT% <strong>tutorial gromacs</strong>

This creates a directory tutorial-quickstart. Go inside the directory and see what is inside.

%UCL_PROMPT_SHORT% <strong>cd tutorial-gromacs</strong>
%UCL_PROMPT_SHORT% <strong>ls -F </strong>

You will see the following files:

1cta_nvt.tpr  Figs/  gromacs_job.sh  gromacs_job.submit  README.md

Take a look at the job description file

%UCL_PROMPT_SHORT% <strong>cat gromacs_job.submit </strong>

The modules are loaded in the wrapper script before executing the actual job. In this example, gromacs is loaded before running the actual simulation.

%UCL_PROMPT_SHORT% <strong>cat gromacs_job.sh</strong>

The following requirement is added to find a machine that has the modules:

requirements = HAS_MODULES == True

Check the job description file.

%UCL_PROMPT_SHORT% <strong>cat gromacs_job.submit </strong>

Let's submit the job.

%UCL_PROMPT_SHORT% <strong>condor_submit gromacs_job.submit </strong>

After the simulation is completed, you will see the output files (including gro, cpt and trr files) from GROMACS in your work directory.