Skip to content

Instantly share code, notes, and snippets.

@enewe101
Last active October 26, 2016 16:39
Show Gist options
  • Save enewe101/1cebfa7f4944e95abf488f54c34173c4 to your computer and use it in GitHub Desktop.
Save enewe101/1cebfa7f4944e95abf488f54c34173c4 to your computer and use it in GitHub Desktop.
Run theano GPU program on Guillimin
#!/bin/bash
#PBS -l nodes=1:ppn=12:gpus=1
#PBS -l walltime=12:00:00
#PBS -o /gs/project/eeg-641-aa/enewel3/entity-embeddings/src/embedder/pbs/train-basic.stdout
#PBS -e /gs/project/eeg-641-aa/enewel3/entity-embeddings/src/embedder/pbs/train-basic.stderr
#PBS -N train-basic
# Load modules, go to source dir, activate virtualenv
module load Python/2.7.10 CUDA/7.5.18 cuDNN/5.0-ga
cd /gs/project/eeg-641-aa/enewel3/entity-embeddings/src/embedder
source ../../env/bin/activate
# Run the model
THEANO_FLAGS='floatX=float32,device=gpu' python train_r2v.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment