forked from hassonlab/247-encoding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit1.sh
More file actions
37 lines (35 loc) · 742 Bytes
/
submit1.sh
File metadata and controls
37 lines (35 loc) · 742 Bytes
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
#!/bin/bash
#!/bin/bash
#SBATCH --time=1:30:00
#SBATCH --mem=128GB
#SBATCH --nodes=1
#SBATCH --cpus-per-task=4
#SBATCH -o './logs/%A.out'
#SBATCH -e './logs/%A.err'
#SBATCH --mail-type=fail
#SBATCH --mail-user=hvgazula@umich.edu
if [[ "$HOSTNAME" == *"tiger"* ]]
then
echo "It's tiger"
module load anaconda
source activate torch-env
elif [[ "$HOSTNAME" == *"della"* ]]
then
echo "It's Della"
module load anaconda
source activate torch-env
else
module load anacondapy
source activate srm
fi
echo 'Requester:' $USER
echo 'Node:' $HOSTNAME
echo 'Start time:' `date`
echo "$@"
if [[ -v SLURM_ARRAY_TASK_ID ]]
then
python "$@" --electrodes $SLURM_ARRAY_TASK_ID
else
python "$@"
fi
echo 'End time:' `date`