-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
5d3acd4
commit f1f844e
Showing
1 changed file
with
43 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,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 |