#!/bin/bash # # (c) 2000 Sun Microsystems, Inc. # # All commands use the sentinel #$ # # --------------------------- # User needs to customize the following items # enclosed by <> # # Job name #$ -N CRE_test # # Job shell #$ -S /bin/bash # # Join stdin/stderr ? answer y or n #$ -j y # # Output file #$ -o CRE_test.output # # --------------------------- # # Execute the job from the current working directory # #$ -cwd # # Mail list #$ -M my_user_name@tdb.uu.se # # Mails can be sent at (b) beginning, (e) end and # at (s) suspension # # Mail settings #$ -m bes # #----------------------------------------- # This is needed for MPI, do not remove! # #$ -l cre # #------------------------------------------ # # Parallel environment request # --------------------------- # # User needs to customize the following items # # CPU_Numbers_requested, use or - # # Example: -pe mpi 2 or -pe mpi 4-22 where the latter # gives 4 to 22 CPU:s depending on the amount # of idle CPU:s at execution time # #$ -pe cre 6 # --------------------------- # # All resources are defined here # #-> Remember that we do not have a fast internode interconnect. #-> For optimal performance you should use only one node or queue. # # Choose your queue(s) # #$ -q simba.cre,duma.cre # #-> Use the following priorities according to the expected #-> execution time of your application. # # Execution time Priority # ----------------------------- # # 0 - 1 h 0 # 1 - 10 h 1 # 10 - 48 h 2 # 48+ h 3 # # Job priority # #$ -p 0 # # --------------------------- # # Put compilations here # # --------------------------- # # Execution # # --------------------------- # # User needs to customize the following items # enclosed by <> # # The NSLOTS variable will contain the number of slots (cpus) given # to you by the system. # # You may or may not use all of them as long as you do not use more # slots than $NSLOTS. # # Example: # If you want to do a speedup measurement you could request 16 slots and # then do the following: # # /export/hpc/codine/mpi/MPRUN -np 1 -Mf $TMPDIR/machines my_app # /export/hpc/codine/mpi/MPRUN -np 2 -Mf $TMPDIR/machines my_app # . # . # /export/hpc/codine/mpi/MPRUN -np 16 -Mf $TMPDIR/machines my_app # /export/hpc/codine/mpi/MPRUN -np $NSLOTS -Mf $TMPDIR/machines # ---------------------------