Skip to content

Instantly share code, notes, and snippets.

@meg-codes
Last active December 18, 2018 19:22
Show Gist options
  • Save meg-codes/067a5cc401c7892b0cb3bde391a37c98 to your computer and use it in GitHub Desktop.
Save meg-codes/067a5cc401c7892b0cb3bde391a37c98 to your computer and use it in GitHub Desktop.
slurm script to run mnist_example
#!/bin/bash
#SBATCH --gres=gpu:1
#one GPU, asking for only one CPU core since we're offloading to GPU
#SBATCH -t 00:05:00
#SBATCH --mail-type=begin
#SBATCH --mail-type=end
#SBATCH --mail-user=yourNETID@princeton.edu
module load anaconda3
# assumes you have a conda environment named tf with tensorflow and matplotlib, i.e.
# conda create -n tf tensorflow matplotlib
source activate tf
python mnist_classify.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment