source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job.sh @ 1781

Last change on this file since 1781 was 1716, checked in by yushan, 5 years ago

Generic_testcase : Tests can be launched via job script now. llsubmit job.sh in root or test folder

File size: 1.5 KB
Line 
1# Arbitrary name of the LoadLeveler job
2# @ job_name = Generic_testcase
3# Standard job output file
4# @ output   = $(job_name).out
5# Error job output file
6# @ error    = $(job_name).err
7# Type of job
8# @ job_type = mpich
9# Number of MPI processes requested
10# @ total_tasks = 16
11# Number of OpenMP/pthreads tasks per MPI process
12# @ nb_threads  = 1
13# @ resources = ConsumableCpus($(nb_threads))
14# Permits passing total_tasks to mpirun via NB_TASKS
15# as well as the number of threads/processes
16# @ environment = OMP_NUM_THREADS=$(nb_threads); NB_TASKS=$(total_tasks)
17# Job time hh:mm:ss (1h30mn here)
18# @ wall_clock_limit = 0:30:00
19# @ queue
20
21# Recommendation : Compile and execute your codes under the same Intel environment. 
22# If necessary, therefore, use the module command to load the appropriate environment.
23# For example, if your code is compiled with Intel/2016.2, uncomment the following line:
24#module load intel/2016.2
25
26# To have the command echoes
27set -x
28
29module load intel/2018.2
30module load gcc/6.4.0
31module load cdo
32module load cmake
33
34# The LOADL_STEP_INITDIR vaiable is automatically set by
35# LoadLeveler at the directory where the llsubmit is typed
36#cp $LOADL_STEP_INITDIR/a.out .
37# The max. STACK memory used (default 4MB) (here 16 MB) per
38# the private variables of each thread.
39export KMP_STACKSIZE=16m
40# It is also possible to use OMP_STACKSIZE
41# export OMP_STACKSIZE=16M
42
43# Execution of a parallel hybrid program (MPI + threads).
44# mpirun -np $NB_TASKS ../../build_prod/bin/generic_testcase.exe
45
46
47cmake .
48
49make test
50
51make report
52
Note: See TracBrowser for help on using the repository browser.