IBM Power Systems 775 Manual page 159

For aix and linux hpc solution
Table of Contents

Advertisement

Job Command File for OpenMP job
Figure 2-20 shows a sample job command file for an OpenMP job. This job is requesting four
separate cores on four CPUs. You set the number of threads for the OpenMP job by using
parallel_threads and OMP_NUM_THREADS environment variable.
#!/bin/ksh
# @ job_name = myjob.openmp
# @ job_type = parallel
# @ class = X_Class
# @ output = $(job_name).out
# @ error = $(job_name).err
# @ task_affinity = core(4)
# @ cpus_per_core = 1
# @ parallel_threads = 4
# @ queue
export OMP_NUM_THREADS=4
export MEMORY_AFFINITY=MCM
./openmp.exe
Figure 2-20 Job Command File for OpenMP job
Job Command File for MPI job
Figure 2-21 shows a sample job command file for an MPI job. This job is requesting four
CPUs on four separate cores. The export of OMP_NUM_THREADS and
MEMORY_AFFINITY is not needed.
#!/bin/ksh
# @ job_name = myjob.mpi
# @ job_type = parallel
# @ class = X_Class
# @ output = $(job_name).out
# @ error = $(job_name).err
# @ env_copy = all
# @ bulkxfer = yes
# @ network.MPI = sn_all,shared,US,,4
# @ rset = RSET_MCM_AFFINITY
# @ mcm_affinity_options = mcm_mem_req mcm_distribute mcm_sni_none
# @ task_affinity=core
# @ cpus_per_core=1
# @ node = 2
# @ tasks_per_node = 32
# @ collective_groups = 64
# @ queue
export MP_LABELIO=yes
export LANG=en_US
export MP_SHARED_MEMORY=yes
export MP_SINGLE_THREAD=yes
export MP_DEVTYPE=hfi
export MP_USE_BULK_XFER=yes
export MP_RDMA_ROUTE_MODE="hw_indirect"
export MP_FIFO_ROUTE_MODE="hw_indirect"
poe ./mpi.exe
Figure 2-21 Job Command File for an MPI job
Chapter 2. Application integration
145

Advertisement

Table of Contents
loading

Table of Contents