Skip to content

Commit

Permalink
minor update 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilei Zeng at qlab01 committed Apr 26, 2024
1 parent 87521ad commit c63c698
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions sbatch_generate.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash
# check locally: bash sbatch_generate.sh

#SBATCH --job-name=generate_array
#SBATCH --job-name=nkd_table
#SBATCH --mail-type=ALL
#SBATCH --ntasks=2
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=16
#SBATCH --time=6:00:00
#SBATCH --array=4-30%1
#SBATCH --partition=small
#SBATCH --qos=expedite #expedite 6 hours, short 2 hours
#SBATCH --time=42:00:00
#SBATCH --array=4-30 #4-30
#SBATCH --partition=mini
#SBATCH --qos=short
#SBATCH --qos=expedite #expedite 6 hours, short 2 hours
#SBATCH --output=log/%x_%A_%a.log
#SBATCH --error=log/%x_%A_%a.err
#SBATCH --nice=10 #larger number with smaller priority
#SBATCH --nice=200 #larger number with smaller priority
#SBATCH --begin=23:00:00
#SBATCH --test-only

Expand All @@ -30,13 +31,18 @@ date
#n_start=$SLURM_ARRAY_TASK_ID
#(( n_end = $SLURM_ARRAY_TASK_ID + 1 ))
(( num_cores = 16 ))
(( n_start = $SLURM_ARRAY_TASK_ID ))
#(( n_start = $SLURM_ARRAY_TASK_ID ))
(( n_start = 34 - $SLURM_ARRAY_TASK_ID ))
#(( n_start = 30 ))
srun ./generate_css_code.out num_cores=$num_cores \
code_folder="../data/CSS-Codes/run2/" \
#srun ./generate_css_code.out num_cores=$num_cores \
#cp generate_css_code.out .job${index}
# 1 for debug, 2 for small
index=1
srun ./.job${index} num_cores=$num_cores \
code_folder="../data/CSS-Codes/run3" \
n_start="$((n_start))" \
n_end="$((n_start+1))" \
num_trials="$((num_cores*100))" \
num_trials="$((num_cores*50))" \
note="node-${SLURMD_NODENAME}-proc-${SLURM_PROCID}"

date
Expand Down

0 comments on commit c63c698

Please sign in to comment.