-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexperiment_script_1.sh
36 lines (22 loc) · 1.11 KB
/
experiment_script_1.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
#!/bin/bash
#PBS -l select=5:ncpus=112 -lplace=excl
source /opt/intel/compilers_and_libraries_2017/linux/mpi/bin64/mpivars.sh
source activate mxnet_latest
### OPA FABRIC ###
export I_MPI_FABRICS=ofi
export I_MPI_TMI_PROVIDER=psm2
export HFI_NO_CPUAFFINITY=1
export I_MPI_FALLBACK=0
export OMP_NUM_THREADS=28
### OPA FABRIC ###
export I_MPI_HYDRA_BOOTSTRAP=rsh
export I_MPI_HYDRA_BOOTSTRAP_EXEC=pbs_tmrsh
export KMP_AFFINITY=granularity=fine,compact,1,0;
# cat $PBS_O_WORKDIR/hostfile
inputdir=/homes/username/datasets/cifar10_normalized
valdir=/homes/username/datasets/cifar10_normalized/dataset_split_10
watchfile=/homes/username/federated/results/experiment_script_1.log
logfile=/homes/username/federated/results/fedrob_1.txt
> $logfile
cat $PBS_NODEFILE | uniq > $PBS_O_WORKDIR/hostfile
mpirun -np 10 -machinefile $PBS_O_WORKDIR/hostfile python /homes/username/federated/fedrob/slsgd.py --classes 10 --model default --nsplit 100 --batchsize 50 --nbyz 0 --lr 0.1 --alpha 1 --alpha-decay 0.9 --alpha-decay-epoch 400 --epochs 800 --iterations 1 --seed 733 --dir $inputdir --valdir $valdir --log $logfile 2>&1 | tee $watchfile