QUEUES for CARLES BO group: Difference between revisions

From Wiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:


Until a 'qs' wrapper will be made you must to conform a .sub script manually and send it using 'qsub' command.
Until a 'qs' wrapper will be made you must to conform a .sub script manually and send it using 'qsub' command.
Below these lines you have a example of .sub script where you must substitute the bold variables :
Below these lines you have a example of .sub script where you must substitute the bold variables :
    
    

Revision as of 09:38, 9 April 2010

SENDING CALCULATIONS:

Until a 'qs' wrapper will be made you must to conform a .sub script manually and send it using 'qsub' command.

Below these lines you have a example of .sub script where you must substitute the bold variables :


'$JOBNAME' identify the job in the cluster queue.

'$QUEUE_NAME' identify the queue where you are sending the calculation

  • qconf -sql

'$PE_NAME identify the name of the Parallel Environment

  • qconf -sq $QUEUE_NAME | grep pe_list

'$N_PROC' identify the requested number of processors

'$ADFVERSION' identify the version of ADF that you can use

  • adf2007.01 | adf2008.01 | adf2009.01



#!/bin/bash                                                        
#$ -N $JOBNAME                                                     
#$ -cwd                                                            
#$ -masterq $QUEUE_NAME                                             
#$ -pe $PE_NAME $N_PROC

#Set an environment variable for the location of MPI
#$ -v MPIR_HOME=/usr/local/adf2008.01/bin/hpmpi     
                                                   
#The number of slots (CPUs) grid engine allocates   
#is set as the variable $NSLOTS                     
echo "Got $NSLOTS slots."                           

export PATH=$PATH                                              
                                                              
export TMPDIR=/scratch                                         
export ADFHOME=/usr/local/$ADFVERSION                           
export ADFBIN=$ADFHOME/bin
export ADFRESOURCES=$ADFHOME/atomicdata
export SCMLICENSE=$ADFHOME/license
export SCM_USETMPDIR=yes
export SCM_NODOMAINCHECK=yes
export MPIDIR=$ADFHOME/bin/hpmpi
export PATH=$PATH:$MPIDIR/bin:$TMPDIR
export SCMWISH=""

$ADFBIN/adf << eor

CALCULATION

echo QUEUE $QUEUE
echo PE $PE
echo NSCM $NSCM
 echo $PWD
cd /scratch
ls -lR
rm -rf *