]> code.communitydata.science - ml_measurement_error_public.git/commitdiff
add some files needed for running simulations on slurm
authorNathan TeBlunthuis <nathante@uw.edu>
Tue, 28 Jun 2022 22:18:25 +0000 (15:18 -0700)
committerNathan TeBlunthuis <nathante@uw.edu>
Tue, 28 Jun 2022 22:18:25 +0000 (15:18 -0700)
simulations/run_simulation.sbatch [new file with mode: 0644]

diff --git a/simulations/run_simulation.sbatch b/simulations/run_simulation.sbatch
new file mode 100644 (file)
index 0000000..20953ae
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+#SBATCH --job-name="simulate measurement error models"
+## Allocation Definition
+#SBATCH --account=comdata
+#SBATCH --partition=compute-bigmem
+## Resources
+#SBATCH --nodes=1    
+## Walltime (12 hours)
+#SBATCH --time=24:00:00
+## Memory per node
+#SBATCH --mem=8G
+#SBATCH --cpus-per-task=1
+#SBATCH --ntasks-per-node=1
+#SBATCH --chdir /gscratch/comdata/users/nathante/ml_measurement_error/mi_simulations
+#SBATCH --output=simulation_jobs/%A_%a.out
+#SBATCH --error=simulation_jobs/%A_%a.out
+
+TASK_NUM=$(($SLURM_ARRAY_TASK_ID + $1))
+TASK_CALL=$(sed -n ${TASK_NUM}p $2)
+${TASK_CALL}
+

Community Data Science Collective || Want to submit a patch?