Personal tools
You are here: Home Computing Hardware Power6 Sample batch scripts

Sample batch scripts

                                                                   

Sample MPI batch job using 4 nodes  on Power6 in "Single Thread" (ST) mode:
-------------------------------------------------------------------------------------

# @ shell=/bin/ksh
#
# Sample script for LoadLeveler
#
# @ error   = job1.err.$(jobid)
# @ output  = job1.out.$(jobid)
# @ job_type = parallel
# @ environment= COPY_ALL
# @ node_usage= not_shared
# @ node = 4
# @ tasks_per_node = 32
# @ resources = ConsumableCpus(1)
# @ network.MPI = sn_all,not_shared,us
# @ wall_clock_limit = 36000
# @ notification = complete
# @ queue

#
# run the program
#

export MP_EUILIB=us
export MP_EUIDEVICE=sn_all
export MP_SHARED_MEMORY=yes
export MEMORY_AFFINITY=MCM
export MP_SINGLE_THREAD=yes

poe ./myprog > prog.out
#####################################################


Sample OpenMP batch job using 4 nodes on Power6 in "Single Thread" (ST) mode:
------------------------------------------------------------------------------------------

# @ shell=/bin/ksh
#
# Sample script for LoadLeveler
#
# @ error   = job1.err.$(jobid)
# @ output  = job1.out.$(jobid)
# @ job_type = parallel
# @ environment= COPY_ALL
# @ node_usage= not_shared
# @ node = 4
# @ tasks_per_node = 1
# @ resources = ConsumableCpus(32)
# @ network.MPI = sn_all,not_shared,us
# @ wall_clock_limit = 36000
# @ notification = complete
# @ queue

#
# run the program
#
OMP_NUM_THREADS=32
export OMP_NUM_THREADS

export MP_EUILIB=us
export MP_EUIDEVICE=sn_all
export MP_SHARED_MEMORY=yes
export MEMORY_AFFINITY=MCM
export MP_SINGLE_THREAD=yes

poe ./myprog > prog.out
#####################################################

 

Sample MPI batch job using 4 nodes on Power6 in "Simultaneous Multithreading" (SMT) mode:
------------------------------------------------------------------------------------------------------

# @ shell=/bin/ksh
#
# Sample script for LoadLeveler
#
# @ error   = job1.err.$(jobid)
# @ output  = job1.out.$(jobid)
# @ job_type = parallel
# @ environment= COPY_ALL
# @ node_usage= not_shared
# @ node = 4
# @ tasks_per_node = 64
# @ resources = ConsumableCpus(1)ConsumableMemory(1600mb)
# @ network.MPI = sn_all,not_shared,us
# @ wall_clock_limit = 36000
# @ notification = complete
# @ queue

#
# run the program
#

export MP_EUILIB=us
export MP_EUIDEVICE=sn_all
export MP_SHARED_MEMORY=yes
export MEMORY_AFFINITY=MCM
export MP_SINGLE_THREAD=yes

poe ./myprog > prog.out
#####################################################


Sample OpenMP batch job using 4 nodes on Power6 in "Simultaneous Multithreading" (SMT) mode:
-----------------------------------------------------------------------------------------------------------

# @ shell=/bin/ksh
#
# Sample script for LoadLeveler
#
# @ error   = job1.err.$(jobid)
# @ output  = job1.out.$(jobid)
# @ job_type = parallel
# @ environment= COPY_ALL
# @ node_usage= not_shared
# @ node = 4
# @ tasks_per_node = 1
# @ resources = ConsumableCpus(64)ConsumableMemory(100000mb)
# @ network.MPI = sn_all,not_shared,us
# @ wall_clock_limit = 36000
# @ notification = complete
# @ queue

#
# run the program
#
OMP_NUM_THREADS=32
export OMP_NUM_THREADS

export MP_EUILIB=us
export MP_EUIDEVICE=sn_all
export MP_SHARED_MEMORY=yes
export MEMORY_AFFINITY=MCM
export MP_SINGLE_THREAD=yes

poe ./myprog > prog.out
#####################################################



Sample batch job using job steps:
-------------------------------------

# @ shell=/bin/ksh
#
# Sample script for LoadLeveler job steps
#
# @ error   = job1.err.$(jobid).$(stepid)
# @ output  = job1.out.$(jobid).$(stepid)
# @ job_type = parallel
# @ environment= COPY_ALL
# @ node_usage= not_shared

# @ step_name = iteration1
# @ node = 4
# @ tasks_per_node = 64
# @ resources = ConsumableCpus(1)ConsumableMemory(1600mb)
# @ network.MPI = sn_all,not_shared,us
# @ wall_clock_limit = 86400
# @ notification = complete
# @ queue

# @ step_name = iteration2
# @ dependency = (iteration1 == 0)
# @ node = 4
# @ tasks_per_node = 64
# @ resources = ConsumableCpus(1)ConsumableMemory(1600mb)
# @ network.MPI = sn_all,not_shared,us
# @ wall_clock_limit = 86400
# @ notification = complete
# @ queue

# @ step_name = iteration3
# @ dependency = (iteration2 == 0)
# @ node = 4
# @ tasks_per_node = 64
# @ resources = ConsumableCpus(1)ConsumableMemory(1600mb)
# @ network.MPI = sn_all,not_shared,us
# @ wall_clock_limit = 36000
# @ notification = complete
# @ queue

export MP_EUILIB=us
export MP_EUIDEVICE=sn_all
export MP_SHARED_MEMORY=yes
export MEMORY_AFFINITY=MCM
export MP_SINGLE_THREAD=yes

echo "Running step $LOADL_STEP_ID ..."
poe ./myprog > prog.out.$LOADL_STEP_ID
#####################################################

Document Actions