-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhpc-dtu.sh.template
More file actions
49 lines (33 loc) · 813 Bytes
/
hpc-dtu.sh.template
File metadata and controls
49 lines (33 loc) · 813 Bytes
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
#!/bin/sh
#BSUB -q QUEUE
#BSUB -gpu "num=1:mode=exclusive_process"
EXTRA
##BSUB -q gputitanxpascal
##BSUB -q gpuqueuek80
##BSUB -R "rusage[ngpus_excl_p=1]"
#BSUB -R "rusage[mem=8GB]"
#BSUB -J lions
#BSUB -n 1
#BSUB -W WALLTIME
#BSUB -o lions-%J.out
#BSUB -e lions-%J.err
#BSUB -L /bin/bash
# Prevents `plt.show()` for attempting connecting.
unset DISPLAY XAUTHORITY
if test X$PBS_ENVIRONMENT = XPBS_BATCH; then cd $PBS_O_WORKDIR; fi
# Unload already installed software
module unload gcc
module unload cuda
module unload cudnn
# Setup cuda path
export CUDA_VERSION='9.0'
export CUDNN_VERSION='v7.4.2.24-prod-cuda-9.0'
# load modules
module load cuda/$CUDA_VERSION
module load cudnn/$CUDNN_VERSION
module load qt
cd ~/mthesis
source activate lions
echo "... Job beginning"
CMD
echo "... Job Ended"