-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest_sbatch_script.sh
46 lines (40 loc) · 1.59 KB
/
test_sbatch_script.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
#!/bin/bash
#SBATCH --qos=unkillable # Ask for unkillable job
#SBATCH --cpus-per-task=2 # Ask for 2 CPUs
#SBATCH --gres=gpu:titanx:1 # Ask for 1 GPU
#SBATCH --exclude=leto52
#SBATCH --mem=32G # Ask for 10 GB of RAM
#SBATCH --time=30:00:00 # The job will run for 3 hours
#SBATCH -o /network/tmp1/deacandr/slurm-%j.out # Write the log on tmp1
export HOME=`getent passwd deacandr | cut -d':' -f6`
source ~/.bashrc
export PYTHONUNBUFFERED=1
echo Running pwdon deacandr
# 0. Set script variables
scratch=/network/tmp1/deacandr/graph_coattention
project_root=/network/tmp1/deacandr/graph_coattention/
arch=randompair
exp_id=1
experiment_name="test-graph-coattn-$arch-$exp_id"
# 1. Load your environment
echo $PATH
module load cuda/10.0
echo $PATH
echo Checking gpu
nvidia-smi
# 1.1 Create & install conda
# 2. Copy your dataset on the compute node
#mkdir $SLURM_TMPDIR/data
cp $scratch/graph-coattn-randompair-1/* $SLURM_TMPDIR/
echo $SLURM_TMPDIR
ls -l $SLURM_TMPDIR
#mkdir $SLURM_TMPDIR/$experiment_name
# 3. Launch your job, tell it to save the model in $SLURM_TMPDIR
# and look for the dataset into $SLURM_TMPDIR
pwd
cd graph_coattention/
python test.py QM9 --memo $SLURM_TMPDIR/randompair-hid50-readout200-repetitions1-patience8-batch256-cv_1_10.pth --settings $SLURM_TMPDIR/randompair-hid50-readout200-repetitions1-patience8-batch256-cv_1_10.npy
# 4. Copy whatever you want to save on $SCRATCH
mkdir -p $scratch/$experiment_name
ls -l $SLURM_TMPDIR
cp $SLURM_TMPDIR/* $scratch/$experiment_name/