forked from jacklxc/Virtual-Rat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testTrainingTimeRatio.sh
33 lines (28 loc) · 1.12 KB
/
testTrainingTimeRatio.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
#!/bin/bash
#SBATCH -n 1 # Number of cores
#SBATCH -N 1 # Number of nodes
#SBATCH -t 7-00:00 # Runtime in D-HH:MM
##SBATCH -p centos7 # Partition to submit to
#SBATCH --mem=4000 # Memory pool for all cores, MB
#SBATCH -e TestTrainingTimeRatio.e # File to which STDERR will be written
#SBATCH --mail-type=ALL # Type of email notification- BEGIN,END,FAIL,ALL
#SBATCH [email protected] # Email or Chinese mobile phone NO. to which notifications will be sent
##SBATCH --constraint=2650v4 # the Features of the nodes
#SBATCH --job-name v-rat
#SBATCH --output TestTrainingTimeRatio-log-%j-%a.txt
#SBATCH --array=0-109
## get tunneling info
XDG_RUNTIME_DIR=""
ipnport=$(shuf -i8000-9999 -n1)
ipnip=$(hostname -i)
## start an ipcluster instance and launch jupyter server
echo "SLURM_JOBID="$SLURM_JOBID
echo "SLURM_JOB_NODELIST"=$SLURM_JOB_NODELIST
echo "SLURM_NNODES"=$SLURM_NNODES
echo "SLURMTMPDIR="$SLURMTMPDIR
echo "working directory = "$SLURM_SUBMIT_DIR
source /etc/profile.d/modules.sh
module load python/intel/2.7.i
cd $HOME/VirtualRat/publication/
chmod 755 TestTrainingTimeRatio.py
./TestTrainingTimeRatio.py $SLURM_ARRAY_TASK_ID