From f1f844e80c78ebf101c9effa7495a9d1648ed48f Mon Sep 17 00:00:00 2001 From: anthonychen000 <124098228+anthonychen000@users.noreply.github.com> Date: Sat, 31 Aug 2024 21:52:35 -0400 Subject: [PATCH] added interactive batch script --- example_submit.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 example_submit.sh diff --git a/example_submit.sh b/example_submit.sh new file mode 100644 index 0000000..79838d3 --- /dev/null +++ b/example_submit.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +#Indicate the account to charge the job to +#SBATCH --account=mdatascience_team + +#Indicate a name to give the job. This can be anything, it's just a way to be able to easily track different jobs +#SBATCH --job-name=example-submit + +#Indicate where to send information about the job +#SBATCH --mail-user=@umich.edu + +#Indicate how often you want info about the job. In this case, you will receive an email when the job has ended +#SBATCH --mail-type=END + +#Indicate how many nodes to run the job on +#SBATCH --nodes=1 + +#Indicate how many tasks to run on each node +#SBATCH --ntasks-per-node=1 + +#Indicate how many cpus to use per task +#SBATCH --cpus-per-task=1 + +#Indicate how much memory to use per cpu +#SBATCH --mem-per-cpu=10000m + +#Indicate how long to run the job for +#SBATCH --time=1:00:00 + +#Indicate which partition to run the job on. In this case, we will run on the standard partition +#SBATCH --partition=standard + +#Get rid of any modules that might still be running +module purge + +python3 -m venv myenv +source myenv/bin/activate + +# Install the required packages +pip install -r requirements.txt + +# Run the desired program +python3 example_script.py \ No newline at end of file