Skip to content

Commit

Permalink
added interactive batch script
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonychen000 authored Sep 1, 2024
1 parent 5d3acd4 commit f1f844e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions example_submit.sh
Original file line number Diff line number Diff line change
@@ -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=<uniqname>@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

0 comments on commit f1f844e

Please sign in to comment.