Penn State EMS Environment Institute
Environmental Computing Facility
#! /usr/bin/csh

# --- parallel_example: a simple shell-script to run parallel jobs on SP ---

# -- LoadLeveler configuration --

# Notes:
# 1) Submit job to LoadLeveler with "llsubmit parallel_example".
# 2) For class parallel_test: node <= 2 & tasks_per_node <= 2,
#    enter "llclass" for other available classes.

# @ job_name            = parallel_example
# @ output              = $(job_name).o$(jobid)
# @ error               = $(job_name).e$(jobid)

# - parallel job stuff:
# @ class               = parallel_test
# @ job_type            = parallel
# @ network.MPI         = switch,not_shared,US
# @ requirements        = (Pool == 1)
# - job geometry: node = number of nodes to run on, tasks_per_node = 1 to 4
# @ node                = 1
# @ tasks_per_node      = 2
# @ queue

# -- POE  configuration for interactive jobs (env variables ignored by LoadLeverler) --

# Notes:
# 1) Run interactively with "./parallel_example".
# 2) For interactive jobs MP_NODES <= 2 & MP_TASKS_PER_NODE <= 2.
# 3) For more information about and list of POE env vars enter "man poe".

setenv  MP_RESD                 yes
setenv  MP_RMPOOL               1
setenv  MP_EUILIB               us
setenv  MP_EUIDEVICE            css0
# - job geometry: MP_NODES = number of nodes to run on, MP_TASKS_PER_NODE = 1 to 4
setenv  MP_NODES                1
setenv  MP_TASKS_PER_NODE       2

# - run your program with poe command.  

# Notes:
# 1) Compile your program mp compiler prefix (e.g. mpcc, mpxlf, mpxlf90...).
# 2) Execute you program with poe command.  A simple example using the system
#    hostname command follows.
# 3) For information about using poe and poe options enter "man poe".

set command     = hostname
set cmd_args    = ""
set poe_opts    = ""

poe $command $cmd_args $poe_opts




Back to the index