-
Notifications
You must be signed in to change notification settings - Fork 2
/
stijn_job.sh
45 lines (33 loc) · 916 Bytes
/
stijn_job.sh
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
#!/bin/bash
#Set job requirements
#SBATCH --job-name=face_synth_with_landmarks
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --ntasks-per-node=1
#SBATCH --time=47:00:00
#SBATCH --mem=60000M
#SBATCH --partition=gpu_shared_course
#SBATCH --gres=gpu:1
echo "scratch_dir"
echo $TMPDIR
#Loading modules
module load Miniconda3/4.3.27
module load CUDA/9.0.176
module load cuDNN/7.3.1-CUDA-9.0.176
export LD_LIBRARY_PATH=/hpc/eb/Debian9/cuDNN/7.1-CUDA-8.0.44-GCCcore-5.4.0/lib6$
export PYTHONIOENCODING=utf8
echo "copy directory"
mkdir $TMPDIR/lgpu0386
cp -r $HOME/DeepFakes $TMPDIR/lgpu0386
echo "cd inwards"
cd $TMPDIR/lgpu0386/DeepFakes
echo "activate env"
source activate dl
echo " ------ Job is started ------- "
echo "dir: "
echo $TMPDIR
echo $(pwd)
srun python3 main.py
cp -r $TMPDIR/lgpu0386/DeepFakes/results/output/* $HOME/DeepFakes/results/output
echo " "
echo " ------ Job is finished -------"