Randy (Cray cx1)
1 node に12コアあり全部で3 nodes. Intel compiler + mpich2 でjob管理は
Sun Grid Engine (SGE).
まず以下のようなスクリプト job1 を作成する.
source /share/apps/intel/bin/ifortvars.csh intel64
source /share/apps/intel/bin/iccvars.csh intel64
setenv PATH /share/apps/intel/bin:/share/apps/intel/mpich2/bin
setenv LD_LIBRARY_PATH /share/apps/intel/lib:/share/apps/intel/mpich2/lib
source /opt/gridengine/default/common/settings.csh
#/share/apps/intel/mpich2/bin/mpirun -np $NSLOTS -machinefile $TMPDIR/machines -f ./hosts16 ./testrun > tmp.log
mpirun -np $NSLOTS -machinefile $TMPDIR/machines ./a.out > tmp.log
#mpirun -f ./hosts16_1 ./testrun > tmp.log
そして,ターミナルから
qsub -cwd -pe mpich 16 ./job1
とすると16並列jobが走る.