-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile-matvec.pbs
64 lines (45 loc) · 1.83 KB
/
profile-matvec.pbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash --login
#PBS -N profile-matvec
#PBS -l walltime=01:00:00
module swap PrgEnv-cray PrgEnv-gnu
module load python-compute
module load cray-libsci
module load cmake
module load cray-hdf5-parallel
export CRAYPE_LINK_TYPE=dynamic
export PETSC_DIR=/work/n02/n02/lmn02/petsc-gnu51-ivybridge-int64
unset PYTHONPATH
unalias pip
export PIP_CERT=/home/y07/y07/cse/curl/7.34.0/lib/ca-bundle.crt
export HDF5_VERSION=1.8.14
BASE=/work/n02/n02/lmn02
export CC=cc
export CXX=CC
export FC=ftn
export F90=$FC
export F77=$FC
export MPICC=cc
export MPICXX=CC
export MPIFC=ftn
export MPIF90=$MPIFC
export MPIF77=$MPIFC
export MPICH_GNI_FORK_MODE=FULLCOPY
export PYOP2_CACHE_DIR=$BASE/pyop2-cache
export FIREDRAKE_TSFC_KERNEL_CACHE_DIR=$BASE/pyop2-cache
export WORK=/work/n02/n02/lmn02
. $BASE/firedrake-int64/bin/activate
export PYTHONPATH=$WORK/composable-solvers:$PYTHONPATH
# Make sure any symbolic links are resolved to absolute path
export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
# Change to the directory that the job was submitted from
# (remember this should be on the /work filesystem)
cd $PBS_O_WORKDIR
# Set the number of threads to 1
# This prevents any system libraries from automatically
# using threading.
export OMP_NUM_THREADS=1
NPROC=48
aprun -n ${NPROC} -N 24 python profile-matvec.py --problem poisson --output-file poisson-matvecs.csv --dimension 2 -log_view > poisson-matvecs-dim2.log
aprun -n ${NPROC} -N 24 python profile-matvec.py --problem poisson --output-file poisson-matvecs.csv --dimension 3 -log_view > poisson-matvecs-dim3.log
aprun -n ${NPROC} -N 24 python profile-matvec.py --problem rayleigh_benard --output-file rb-matvecs.csv --dimension 2 -log_view > rb-matvecs-dim2.log
aprun -n ${NPROC} -N 24 python profile-matvec.py --problem rayleigh_benard --output-file rb-matvecs.csv --dimension 3 -log_view > rb-matvecs-dim3.log