Last active
September 6, 2017 12:18
-
-
Save arcaduf/d8e4f58a4a27d2c8b22588b6a1e15ee7 to your computer and use it in GitHub Desktop.
Non-interactive GPU session with Slurm
This file contains hidden or 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
virtualenv ~/mypio | |
source ~/mypio/bin/activate | |
pip install scipy scikit-image scikit-learn SimpleITK h5py | |
deactivate | |
sbatch shellwrapper.sh | |
Inside the shellwrapper: | |
#!/bin/bash | |
#SBATCH --partition gpu | |
#SBATCH --gres gpu:1 | |
#SBATCH --mail-type=END,FAIL | |
#SBATCH [email protected] | |
ml python2 | |
ml virtualenv | |
ml CUDA cuDNN | |
ml OpenCV/2.4.11-goolf-1.7.20 | |
ml TensorFlow/1.1.0-goolf-1.7.20-CUDA-8.0.44-Python-2.7.11 | |
source ~/mypio/bin/activate | |
<cmd> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment