#!/bin/csh -f set HOST=`hostname | cut -c1-4` if ("$HOST" != "spin") then cat << EOF ATTENTION: These files are only setup to work from the SP-2 nodes themselves -- NOT the front end machines (uncle and bond) or any SPARC machine. -- Aborting EOF exit endif # # Use the IP library # setenv MP_EUILIB us # # Use the switch # setenv MP_EUIDEVICE css0 # # Delete this variable since we are using a hostfile # unsetenv MP_RMPOOL # # Use the resource manager # The ND/HPCC SP is configured to use it only for US # setenv MP_RESD yes # # Set the host list filename # Common example -- look for a file named "hosts" in the current directory # setenv MP_HOSTFILE hosts # # For MPI performance # setenv MP_CSS_INTERRUPT yes # # How much debugging info do we want from MPI (0-6) # setenv MP_INFOLEVEL 1 # # Labels stdout indicating which node it came from # setenv MP_LABELIO yes # # Two options: # ordered - buffer all output until the program has completed, but show # all stdout in order that it occured, by node # unordered / not set - show all stdout as it happens # #setenv MP_STDOUTMODE ordered setenv MP_STDOUTMODE unordered # # Take 4 procs for the tutorial # setenv MP_PROCS 4 # # Announce # cat << EOF The environment variable MPI_HOSTFILE has been set to the value "hosts", which means that MPI will look for a file named "hosts" in your current directory to find a list of hosts to run on. Your initial number of processors has been set to $MP_PROCS. You may change this by resetting the MP_PROCS environment variable with the command: setenv MP_PROCS x where x is from 1 to 4 (for interactive mode). EOF