File size: 1,136 Bytes
6ca0c6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
50
#!/bin/bash
#SBATCH --job-name=benchmarking
#SBATCH --nodes=1
#SBATCH --qos=normal
# set 2h for job wall time limit
#SBATCH --time=02:00:00
# activate the requeue option
#SBATCH --requeue
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=12
#SBATCH --gres=gpu:1
#SBATCH --mem-per-cpu=10G
#SBATCH --partition=production-cluster
#SBATCH -o /fsx/sayak/logs/benchmarking-job/sdxl-fast-%x-%j.out

set -x -e

source /admin/home/sayak/.bashrc
source /admin/home/sayak/miniconda3/etc/profile.d/conda.sh
conda activate /fsx/sayak

echo "START TIME: $(date)"

REPO=/fsx/sayak/sdxl-fast
OUTPUT_DIR=/fsx/sayak/benchmarking
LOG_PATH=$OUTPUT_DIR/main_log.txt

mkdir -p $OUTPUT_DIR
touch $LOG_PATH
pushd $REPO

PROGRAM="run_specific.sh"
export LAUNCHER="CUDA_VISIBLE_DEVICES=0 bash"
export CMD="$LAUNCHER $PROGRAM"
echo $CMD

# AWS specific
export NCCL_PROTO=simple
export RDMAV_FORK_SAFE=1
export FI_EFA_FORK_SAFE=1
export FI_EFA_USE_DEVICE_RDMA=1
export FI_PROVIDER=efa
export FI_LOG_LEVEL=1
export NCCL_IB_DISABLE=1
export NCCL_SOCKET_IFNAME=ens

clear; srun --wait=60 --jobid 937441 bash -c "$CMD" 2>&1 | tee $LOG_PATH

echo "END TIME: $(date)"