Skip to content

Commit 4572ef2

Browse files
Merge pull request #26 from PPPLDeepLearning/jenkins_test
Jenkins test + Python3 and 1D Profile Fixes
2 parents c11a426 + 9e36e13 commit 4572ef2

20 files changed

+232
-123
lines changed

examples/compare_batch_iterators.py

Lines changed: 0 additions & 75 deletions
This file was deleted.

examples/conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ paths:
1010
signal_prepath: '/signal_data/' #/signal_data/jet/
1111
shot_list_dir: '/shot_lists/'
1212
tensorboard_save_path: '/Graph/'
13-
data: 'jet_data' #'d3d_to_jet_data' #'d3d_to_jet_data' # 'jet_to_d3d_data' #jet_data
13+
data: jet_data #'d3d_to_jet_data' #'d3d_to_jet_data' # 'jet_to_d3d_data' #jet_data
1414
specific_signals: [] #['q95','li','ip','betan','energy','lm','pradcore','pradedge','pradtot','pin','torquein','tmamp1','tmamp2','tmfreq1','tmfreq2','pechin','energydt','ipdirect','etemp_profile','edens_profile'] #if left empty will use all valid signals defined on a machine. Only use if need a custom set
1515
executable: "mpi_learn.py"
1616
shallow_executable: "learn.py"

examples/guarantee_preprocessed.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
pprint(conf)
1212
from plasma.preprocessor.preprocess import guarantee_preprocessed
1313

14-
os.environ["PYTHONHASHSEED"] = "0"
15-
1614
#####################################################
1715
####################PREPROCESSING####################
1816
#####################################################

examples/jenkins.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

examples/mpi_learn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
import random
2525
import numpy as np
2626

27-
os.environ["PYTHONHASHSEED"] = "0"
28-
2927
import matplotlib
3028
matplotlib.use('Agg')
3129

File renamed without changes.
File renamed without changes.

examples/signal_influence.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import copy
2727
from functools import partial
2828

29-
os.environ["PYTHONHASHSEED"] = "0"
30-
3129
import matplotlib
3230
matplotlib.use('Agg')
3331

examples/simple_augmentation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import copy
2727
from functools import partial
2828

29-
os.environ["PYTHONHASHSEED"] = "0"
30-
3129
import matplotlib
3230
matplotlib.use('Agg')
3331

jenkins-ci/jenkins.sh

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/bin/bash
2+
3+
export OMPI_MCA_btl="tcp,self,sm"
4+
5+
echo ${PWD}
6+
7+
echo "Jenkins test Python3.6"
8+
rm /tigress/alexeys/model_checkpoints/*
9+
rm -rf /tigress/alexeys/processed_shots
10+
rm -rf /tigress/alexeys/processed_shotlists
11+
rm -rf /tigress/alexeys/normalization
12+
module load anaconda3/4.4.0
13+
source activate /tigress/alexeys/jenkins/.conda/envs/jenkins3
14+
module load cudatoolkit/8.0
15+
module load cudnn/cuda-8.0/6.0
16+
module load openmpi/cuda-8.0/intel-17.0/2.1.0/64
17+
module load intel/17.0/64/17.0.4.196
18+
19+
echo ${PWD}
20+
cd /home/alexeys/jenkins/workspace/FRNM/PPPL
21+
echo ${PWD}
22+
python setup.py install
23+
24+
echo $SLURM_NODELIST
25+
cd examples
26+
echo ${PWD}
27+
ls ${PWD}
28+
sed -i -e 's/num_epochs: 1000/num_epochs: 2/g' conf.yaml
29+
sed -i -e 's/data: jet_data/data: jenkins_jet/g' conf.yaml
30+
31+
srun python mpi_learn.py
32+
33+
echo "Jenkins test Python2.7"
34+
#rm /tigress/alexeys/model_checkpoints/*
35+
36+
#source deactivate
37+
#module purge
38+
#module load anaconda/4.4.0
39+
#source activate /tigress/alexeys/jenkins/.conda/envs/jenkins2
40+
#module load cudatoolkit/8.0
41+
#module load cudnn/cuda-8.0/6.0
42+
#module load openmpi/cuda-8.0/intel-17.0/2.1.0/64
43+
#module load intel/17.0/64/17.0.4.196
44+
45+
#cd ..
46+
#python setup.py install
47+
48+
#echo $SLURM_NODELIST
49+
#cd examples
50+
#sed -i -e 's/data: jenkins_jet/data: jenkins_d3d/g' conf.yaml
51+
#srun python mpi_learn.py

0 commit comments

Comments
 (0)