forked from v-sivak/quantum-control-rl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbenchmark.sbatch
37 lines (30 loc) · 1.11 KB
/
benchmark.sbatch
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
#SBATCH --partition=gpu
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --time=2:00:00
#SBATCH --cpus-per-task=9
#SBATCH --mem=40gb
#SBATCH --constraint=cascadelake
#SBATCH --gres=gpu:v100:1
#SBATCH --job-name=benchmark
#SBATCH --output=%x-%j.out
#SBATCH --mail-type=ALL
#SBATCH [email protected]
source ~/.bashrc
module restore gkp-rl
conda activate gkp-rl
# Compare single displacement generation (i.e. initialization time)
python -m benchmark.benchmark_algo --num 1
python -m benchmark.benchmark_algo --num 1 --dataset
# A typical "in-memory" batch size
python -m benchmark.benchmark_algo --num 100
python -m benchmark.benchmark_algo --num 100 --dataset
# "Largest" (conservatively) batch size that fits in 32GB
python -m benchmark.benchmark_algo --num 0
python -m benchmark.benchmark_algo --num 0 --dataset --batchsize 0
# Tests a larger than memory batch with different batchsizes
python -m benchmark.benchmark_algo --num 500 --dataset --batchsize 100
python -m benchmark.benchmark_algo --num 500 --dataset --batchsize 0
# Benchmark scaling with number of alphas
python -m benchmark.benchmark_scaling