#!/bin/bash # # (c) 2000 Sun Microsystems, Inc. # # All commands use the sentinel #$ # # --------------------------- # User needs to customize the following items # enclosed by <> # # Job name #$ -N OMP_test # # Job shell #$ -S /bin/bash # # Join stdin/stderr ? answer y or n #$ -j y # # Output file #$ -o OMP_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 # # Parallel environment request # --------------------------- # # User needs to customize the following items # # CPU_Numbers_requested, use or - # # Example: -pe openmp 2 or -pe openmp 4-22 where the latter # gives 4 to 22 CPU:s depending on the amount # of idle CPU:s at execution time # #$ -pe openmp 6 # --------------------------- # # All resources are defined here # # Choose your queue(s) # #$ -q simba.q,duma.q # #-> 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. # OMP_NUM_THREADS=$NSLOTS export OMP_NUM_THREADS # ---------------------------