Skip to content

Commit 9746e89

Browse files
committed
some slurm fixes
1 parent df21733 commit 9746e89

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

slurm/gen_tcs.slurm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#SBATCH --nodes=1
55
#SBATCH --tasks-per-node=128
66
#SBATCH --cpus-per-task=1
7-
#SBATCH --time=24:00:0
7+
#SBATCH --time=24:00:00
88
##%%%%SBATCH --time=00:20:00
99

1010
# slurm job name as output log file name

slurm/process_array.sbatch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
# --- JOB ARRAY ---
1313
# Replace '499' with your (total_runs - 1)
1414
# %128 means "run 128 tasks at a time"
15-
#SBATCH --array=0-499%128
15+
# SBATCH --array=0-499%128
1616

1717
# Output log file:
1818
# %x = job name, %A = job ID, %a = array task ID
1919
#SBATCH --output=logs/%x-%A_%a.out
2020

21-
#SBATCH --mail-type=BEGIN,END,FAIL
22-
21+
##SBATCH --mail-type=BEGIN,END,FAIL
22+
2323

2424
# --- Setup ---
2525
source /work/n02/n02/sdat2/.bashrc
@@ -43,7 +43,7 @@ mkdir -p $SAVE_PARENT_DIR
4343

4444
# --- Job Array Logic ---
4545
# 1. Create a bash array of all run directories
46-
DIRS=($(find $RUN_PARENT_DIR -mindepth 1 -maxdepth 1 -type d -name "exp_*" | sort))
46+
DIRS=($(find $RUN_PARENT_DIR -mindepth 1 -maxdepth 1 -type d | sort))
4747

4848
# 2. Check if the array is empty
4949
if [ ${#DIRS[@]} -eq 0 ]; then
@@ -76,7 +76,7 @@ echo "---"
7676
# OPTION 1: Run with use_dask=False (My recommendation for Lustre)
7777
# The --use-dask flag is absent, so the script defaults to False.
7878
echo "Running with use_dask=False"
79-
python -m adforce.process_single_run \
79+
python -m adforce.process_single \
8080
--run-path $MY_RUN_DIR \
8181
--save-path $MY_SAVE_PATH
8282

0 commit comments

Comments
 (0)