-
Notifications
You must be signed in to change notification settings - Fork 0
/
runscript_singularity_profiling.sh
executable file
·48 lines (41 loc) · 1.32 KB
/
runscript_singularity_profiling.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
#!/bin/bash
#SBATCH -J deepcam
#SBATCH -N 5
#SBATCH -p grete
#SBATCH -G 20
#SBATCH -c 12
#SBATCH --mem=400G
#SBATCH --gpus-per-task=1
#SBATCH --ntasks-per-node=4
#SBATCH -t 12:00:00
module load cuda
module load gcc/9.3.0 openmpi/gcc.9/4.1.1-cuda.11.2
module load singularity
totalranks="$(( $SLURM_NNODES * $SLURM_NTASKS_PER_NODE ))"
local_batch_size=2
run_tag="test_run_nranks-${totalranks}"
mounts="./input:/data,./output:/output,$PWD:/runscripts,./tmpdir:/tmp"
# python \
# nsys profile --force-overwrite true -o /runscripts/timeline --trace cuda,nvtx,osrt,openacc python \
srun --mpi=pmi2 -n ${totalranks} \
singularity run --nv --env="TMPDIR=/tmp" -B $mounts --pwd=/runscripts deepcam.sif \
ncu -f -o ncprof --set full --target-processes all python \
./train.py \
--wireup_method "nccl-slurm-pmi" \
--run_tag ${run_tag} \
--data_dir_prefix /data \
--output_dir /output \
--model_prefix "segmentation" \
--optimizer "Adam" \
--start_lr 0.0055 \
--lr_schedule type="multistep",milestones="64",decay_rate="0.1" \
--lr_warmup_steps 10 \
--lr_warmup_factor 1. \
--weight_decay 1e-2 \
--logging_frequency 10 \
--save_frequency 0 \
--max_epochs 3 \
--max_inter_threads 4 \
--seed $(date +%s) \
--batchnorm_group_size 1 \
--local_batch_size ${local_batch_size}