-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash -l | ||
#SBATCH -J rose | ||
#SBATCH -o /path/to/rose/states/rose.out | ||
#SBATCH -e /path/to/rose/states/rose.err | ||
#SBATCH --mail-type=ALL | ||
#SBATCH [email protected] | ||
#SBATCH --ntasks=21 | ||
#SBATCH --nodes=3 | ||
#SBATCH --ntasks-per-node=7 | ||
#SBATCH --time=48:00:00 | ||
|
||
source /home/SPACK2023/share/spack/setup-env.sh | ||
module load apptainer-1.0.3-gcc-12.2.0-aojy6ca | ||
|
||
cd /path/to/rose | ||
srun -n 21 ./render.sh states/state.pvsm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# This script is to be called from the batch job, | ||
# so that Slurm environment variables are set after scheduling. | ||
|
||
STATE_NAME=${1%.*} | ||
TOTAL_TASK_NUMBER=21 | ||
echo "State name: $STATE_NAME" | ||
mkdir -p "$STATE_NAME" | ||
|
||
apptainer exec --bind /scratch:/scratch \ | ||
/path/to/rose.sif render_state.py \ | ||
--state=$1 \ | ||
--total-task-number=$TOTAL_TASK_NUMBER \ | ||
--task-id=$(($SLURM_NODEID*$SLURM_NTASKS_PER_NODE + $SLURM_LOCALID)) \ | ||
--output-dir=$STATE_NAME |
File renamed without changes.