-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlaunch_bpnnSpinGlass_sbatch.sh
executable file
·49 lines (38 loc) · 1.33 KB
/
launch_bpnnSpinGlass_sbatch.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
#!/bin/bash
#SBATCH --partition=atlas --qos=normal
#SBATCH --time=48:00:00
#SBATCH --nodes=1
#SBATCH --cpus-per-task=2
#SBATCH --mem=8G
#SBATCH --job-name="learnBP_SAT"
#SBATCH --output=slurm-%j.out
# only use the following on partition with GPUs
#SBATCH --gres=gpu:1
#SBATCH --exclude=atlas19,atlas20,atlas21,atlas22,atlas3,atlas8,atlas5
# only use the following if you want email notification
####SBATCH --mail-user=youremailaddress
####SBATCH --mail-type=ALL
# list out some useful information (optional)
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
# sample process (list hostnames of the nodes you've requested)
NPROCS=`srun --nodes=${SLURM_NNODES} bash -c 'hostname' |wc -l`
echo NPROCS=$NPROCS
cd /atlas/u/jkuck/learn_BP
echo 'hi'
echo $1
echo $2
echo $3
echo $4
echo $5
source /sailhome/jkuck/miniconda2/etc/profile.d/conda.sh
conda activate /atlas/u/jkuck/learn_BP/venv35
# python learn_BP_spinGlass.py --use_MLP1 $1 --use_MLP2 $1 --use_MLP3 $2 --use_MLP4 $2 --SHARE_WEIGHTS $3 --subtract_prv_messages $4 --bethe_mlp $5
python learn_BP_spinGlass.py
# can try the following to list out which GPU you have access to
#srun /usr/local/cuda/samples/1_Utilities/deviceQuery/deviceQuery
# done
echo "Done"