File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # PBS -l nodes=1:ppn=24
3
+ # PBS -q default
4
+ # PBS -j oe
5
+
6
+ # Set the correct modules available (see environment configuration)
7
+
8
+ . /usr/share/Modules/init/bash
9
+
10
+ source /usr/share/Modules/init/bash # Set the correct modules available
11
+ unset MODULEPATH; module use /opt/exp_soft/vo.llr.in2p3.fr/modulefiles_el7
12
+
13
+ # Load compilers
14
+ module load compilers/icc/17.4.196 # for centos7
15
+ module load mpi/openmpi/4.1.1-ib-icc
16
+ module load hdf5/1.10.5-icc-omp4.1.1
17
+ module load python/3.7.0
18
+ module load compilers/gcc/4.9.2
19
+ module load h5py/hdf5_1.10.5-icc-omp4.1.1-py3.7.0
20
+
21
+
22
+ export OMPI_CC=icc
23
+ export OMPI_CXX=icpc
24
+ export OMPI_F90=ifort
25
+ export OMPI_F77=ifort
26
+ export OMPI_FC=ifort
27
+ export CC=mpicc
28
+ export CXX=mpicxx
29
+ export FC=mpif77
30
+
31
+
32
+ export PS1=" \A \u \[\033[01;34m\]\h:\w\[\033[01;31m\] > \[\033[00m\]"
33
+
34
+
35
+
36
+ # Go to current directory
37
+ cd $PBS_O_WORKDIR
38
+
39
+ # -bind-to-core to fix a given MPI process to a fixed set of cores.
40
+ export OMP_NUM_THREADS=12
41
+ export OMP_SCHEDULE=DYNAMIC
42
+
43
+
44
+ export KMP_AFFINITY=granularity=fine,compact,1,0
45
+
46
+ export PATH=$PATH :/opt/exp_soft/vo.llr.in2p3.fr/GALOP/beck
47
+
48
+ # Specify the number of sockets per node in -mca orte_num_sockets
49
+ # Specify the number of cores per sockets in -mca orte_num_cores
50
+ mpirun -mca orte_num_sockets 2 -mca orte_num_cores 12 -map-by ppr:1:socket:pe=12 -n 2 -x OMP_NUM_THREADS -x OMP_SCHEDULE ./smilei InputNamelist.py 2>&1 | tee smilei.log
51
+
You can’t perform that action at this time.
0 commit comments