Last active
March 25, 2020 03:55
-
-
Save jimmyahacker/eeda0c25ae3068652e1ddf190be8744b to your computer and use it in GitHub Desktop.
Create virtual environment on NYU HPC Prince Cluster using tensorflow 1.7 or later in python3
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
# activate existed python3 module to get virtualenv | |
module load python3/intel/3.6.3 | |
# create virtual environment with python3 | |
virtualenv -p python3 $HOME/py3tf | |
# activate virtual environment | |
source $HOME/py3tf/bin/activate | |
# install tensorflow-gpu | |
pip install tensorflow-gpu | |
# unload module | |
module unload python3/intel/3.6.3 |
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
# load cuda and cudnn | |
module load cuda/9.0.176 | |
module load cudnn/9.0v7.0.5 | |
# activate virtual environment | |
source $HOME/py3tf/bin/activate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions
source create_venv.sh
and go out for a cup of coffee.source run_venv.sh
every time you wanna dive into this virtual environment and you could apply for CPU/GPU resources with this repo, too