Skip navigation
NASA Logo, National Aeronautics and Space Administration
Modeling Guru Banner

Version Comparison: New Version of PoDS (3.0.0)

Comparing: Revision 2 » Revision 3


 
 
Color Key: Addition Deletion Change
Revision 2   By Jules Kouatchou at 7 years, 8 months ago Revision 3   By Jules Kouatchou at 7 years, 4 months ago

We introduce a new version of the Portable Distributed Scripts (PoDS). We added command lines options to submit PoDS to run independent task. The options are:

 

--version                            show PoDS version number
-h                                        show the help message
-n numCodePerNode          set the number of core per nodes                      
-e myEnv                             environment variables to be passed
-x executionFile                  execution file

 

This version is available from:

 

/usr/local/other/PoDS/PoDS

 

To have access to help, type

 

/usr/local/other/PoDS/PoDS/pods.py -h

 

To execute independent tasks (listed in the file myPoDSexecFile) on 8 cores/node:

 

/usr/local/other/PoDS/PoDS/pods.py -x myPoDSexecFile -n 8

 

To pass environment variables:

 

/usr/local/other/PoDS/PoDS/pods.py -e myEnv -x myPoDSexecFile -n 8

 

where myEnv is a list (in fact Python-like disctionary) of environment variables you want PoDS to use on each individual tasks. It should look like:

 

myEnv = {'SHELL': '/usr/local/bin/csh', 
               'MKLPATH': '/usr/local/intel/mkl/10.1.2.024/lib/em64t', 
               'MKLROOT':'/usr/local/intel/mkl/10.1.2.024',
               'INCLUDE':'/usr/local/intel/mkl/10.1.2.024/include:/usr/local/other/gcc/4.5/include',
               'LIBRARY_PATH':'/usr/local/intel/mkl/10.1.2.024/lib/em64t:/usr/local/other/gcc/4.5/lib64',
               'LD_LIBRARY_PATH': '/usr/local/intel/mkl/10.1.2.024/lib/em64t:/usr/local/other/gcc/4.5/lib64'}

 

The above environment variables were mainly obtained from loading the modules other/comp/gcc-4.5 and lib/mkl-10.1.2.024.

 

This version of PoDS should work as well as the one available in /usr/local/other/pods.

We introduce a new version of the Portable Distributed Scripts (PoDS). We added command lines options to submit PoDS to run independent task. The options are:

 

--version                            show PoDS version number -h                                        show the help message -n numCodePerNode          set the number of core per nodes                      -e myEnv                             environment variables to be passed -x executionFile                  execution file

 

This version is available from:

 

/usr/local/other/PoDS/PoDS

 

To have access to help, type

 

/usr/local/other/PoDS/PoDS/pods.py -h

 

To execute independent tasks (listed in the file myPoDSexecFile) on 8 cores/node:

 

/usr/local/other/PoDS/PoDS/pods.py -x myPoDSexecFile -n 8

 

To The best way to pass environment variables is to do to set them within individual tasks (that are scripts). However, PoDS allows the inclusion of environment variables at the command line:

 

/usr/local/other/PoDS/PoDS/pods.py -e myEnv -x myPoDSexecFile -n 8

 

where myEnv is a list (in fact Python-like disctionary) of specific environment variables you want PoDS to use on each individual tasks. It   Here is how myEnv should look like:

 

myEnvsetenv = {'SHELL': '/usr/local/bin/csh',                'MKLPATH': '/usr/local/intel/mkl/10.1.2.024/lib/em64t',                'MKLROOT':'/usr/local/intel/mkl/10.1.2.024',                'INCLUDE':'/usr/local/intel/mkl/10.1.2.024/include:/usr/local/other/gcc/4.5/include',                'LIBRARY_PATH':'/usr/local/intel/mkl/10.1.2.024/lib/em64t:/usr/local/other/gcc/4.5/lib64',                'LD_LIBRARY_PATH': '/usr/local/intel/mkl/10.1.2.024/lib/em64t:/usr/local/other/gcc/4.5/lib64'}

 

The above environment variables were mainly obtained from loading the modules other/comp/gcc-4.5 and lib/mkl-10.1.2.024.

 

param 1.75 setenv binDIR  /home/userName/code/bin setenv workDIR /discover/nobackup/userName/testPoDS set myEnv = "{'param': '$param', 'workDIR': '$workDIR', 'binDIR': '$binDIR'}"/usr/local/other/PoDS/PoDS/pods.py -e "$myEnv " -x myPoDSexecFile -n 8

 

 

 

This version of PoDS should work as well as the one available in /usr/local/other/pods.

USAGov logo NASA Logo - nasa.gov