-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit.sh
executable file
·18 lines (15 loc) · 1006 Bytes
/
submit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#SBATCH --job-name=tazik_learning # Job name
#SBATCH --nodes=1 # Number of nodes. We only have one node at the moment.
#SBATCH --ntasks=1 # Number of CPU tasks. Typically, one task is started per node.
#SBATCH --cpus-per-task=1 # Specifies the number of CPUs (which might be interpreted as cores or threads) you wish to allocate to each of those tasks.
#SBATCH --mem=32768 # Request 8Gb of memory
#SBATCH --gres=gpu:3090:1 # Request 1 3090 GPUs. GRE stands for generic resources.
#SBATCH --time=01:00:00 # Time limit hrs:min:sec
#SBATCH --output=job_%j.out # Standard output and error log. %j interpolates the job ID
# Source your .bashrc to ensure that the environment is properly set up
# source ~/.bashrc
# Activate your environment (if you're using conda or another virtual environment)
conda activate aj
# Use srun to run the job
srun python -u scratch.py > scratch.out