-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubmitToGPU_IC.sh
56 lines (42 loc) · 3.15 KB
/
submitToGPU_IC.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
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
#$ -cwd
#$ -q gpu.q
#$ -v OMP_NUM_THREADS=16
#$ -l h_rt=24:0:0
#$ -l gpu=1 #more is not yet possible for some reason
source /vols/build/cms/amartell/MLTag/XTagger/Env/env_gpu.sh
source /vols/build/cms/mkomm/cuDNNv7_cuda8/setupCuDNN.sh
cd /vols/build/cms/amartell/DL4J/delphes_domain_ada
baseINPUTDIR=/vols/cms/amartell/DNN_domainAda_testGPU
mkdir -p $baseINPUTDIR
INPUTDIR=$baseINPUTDIR/MC_training
mkdir -p $INPUTDIR
python AdaptMeDelphes.py $INPUTDIR/1 MC_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/1.log &
python AdaptMeDelphes.py $INPUTDIR/2 MC_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/2.log &
python AdaptMeDelphes.py $INPUTDIR/3 MC_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/3.log &
python AdaptMeDelphes.py $INPUTDIR/4 MC_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/4.log &
python AdaptMeDelphes.py $INPUTDIR/5 MC_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/5.log &
wait
INPUTDIR=$baseINPUTDIR/data_training
mkdir -p $INPUTDIR
python AdaptMeDelphes.py $INPUTDIR/1 data_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/1.log &
python AdaptMeDelphes.py $INPUTDIR/2 data_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/2.log &
python AdaptMeDelphes.py $INPUTDIR/3 data_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/3.log &
python AdaptMeDelphes.py $INPUTDIR/4 data_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/4.log &
python AdaptMeDelphes.py $INPUTDIR/5 data_training -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/5.log &
wait
INPUTDIR=$baseINPUTDIR/stepwise_domain_adaptation
mkdir -p $INPUTDIR
python AdaptMeDelphes.py $INPUTDIR/1 stepwise_domain_adaptation -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/1.log &
python AdaptMeDelphes.py $INPUTDIR/2 stepwise_domain_adaptation -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/2.log &
python AdaptMeDelphes.py $INPUTDIR/3 stepwise_domain_adaptation -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/3.log &
python AdaptMeDelphes.py $INPUTDIR/4 stepwise_domain_adaptation -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/4.log &
python AdaptMeDelphes.py $INPUTDIR/5 stepwise_domain_adaptation -i='/vols/cms/amartell/DelphesTrainingDataset/numpyx2/' --gpufraction=0.17 --runIC &> $INPUTDIR/5.log &
wait
python compute_averages.py $baseINPUTDIR/MC_training
wait
python compute_averages.py $baseINPUTDIR/data_training
wait
python compute_averages.py $baseINPUTDIR/stepwise_domain_adaptation
wait
python make_plots.py $baseINPUTDIR -c stepwise_domain_adaptation