forked from sony/clews
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_benchmark.sh
More file actions
30 lines (25 loc) · 800 Bytes
/
Copy pathrun_benchmark.sh
File metadata and controls
30 lines (25 loc) · 800 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
#!/bin/bash
#SBATCH --export=ALL
#SBATCH -J dvi-h5
#SBATCH --output=logs/clews_benchmark_%j.out
#SBATCH --error=logs/clews_benchmark_%j.err
#SBATCH -N 1
#SBATCH -t 48:00:00
#SBATCH --partition=gpu
#SBATCH --ntasks=1
#SBATCH --mem=32G
#SBATCH --gpus-per-node=2
#SBATCH --cpus-per-task=16
module purge
module load CUDA/12.1.1
module load Anaconda3/2024.02-1
# Load bash and conda environment correctly
source ~/.bashrc
source $(conda info --base)/etc/profile.d/conda.sh
conda activate clewsTesting
echo "Python executable: $(which python)"
echo "Python version: $(python --version)"
python -m pip show omegaconf || echo "omegaconf missing"
export OMP_NUM_THREADS=1
export HDF5_USE_FILE_LOCKING=FALSE
srun python -u train_h5.py jobname=dvi-h5 conf=config/dvi-h5.yaml fabric.nnodes=1 fabric.ngpus=2