Skip to content

Steps required to set up Tensorflow on a computing cluster (Param-Ishan) available at IITG.

Notifications You must be signed in to change notification settings

abhipec/tensorflow-param-ishan-iitg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

tensorflow-param-ishan-iitg

Steps required to set up Tensorflow on a computing cluster (Param-Ishan) available at IITG.

As of now only Tensorflow 0.10 version will work, because later version requires cuda-8 support, which is not yet working on Param-Ishan.

GPU login node IP is 172.17.0.8, login directly to this node by its IP.

Requirements:

  1. Cuda 7.5 with cuDNN
  2. Python3 virtualenv (Not necessary, but this will make installation and management easier).

Steps:

  1. create a copy of Cuda toolkit to the home directory.
  mkdir cuda75
  cp -r /cm/shared/apps/cuda75/toolkit/7.5.18/* cuda75/
  1. Download and install cuDNN v5.1 Library for Linux for Cuda 7.5
  cd
  tar xvf cudnn-7.5-linux-x64-v5.1.tgz
  mv cuda/include/cudnn.h cuda75/include/
  mv cuda/lib64/* cuda75/lib64/
  rm -rf cuda
  1. Prepare .bashrc, here is the complete content of the .bashrc file that will work.
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions
module load gcc/4.8.2
module load python/cdac/3.5.2
module load slurm

# Change proxy setting.
export http_proxy=http://username:password@IP:3128/
export https_proxy=$http_proxy
export LC_COLLATE=C
export LC_ALL=C

# CUDA settings
export CUDA_ROOT=~/cuda75
export CUDA_HOME=~/cuda75
export PATH=${CUDA_HOME}/bin:$PATH
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/cm/shared/apps/glibc_2.14:$LD_LIBRARY_PATH
  1. Logout and login again to make sure correct modules are loaded.

  2. Install virtualenv and Tensorflow

pip3 install --upgrade pip --user
.local/bin/pip3 install virtualenv --user
.local/bin/virtualenv p3_env
source p3_env/bin/activate
pip install cython
export
TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0-cp35-cp35m-linux_x86_64.whl

pip install $TF_BINARY_URL
pip install ipython
  1. That's it, it will work!!. (Quick test)
source p3_env/bin/activate
ipython
import tensorflow as tf
sess = tf.Session()
sess.run(tf.constant(100))

About

Steps required to set up Tensorflow on a computing cluster (Param-Ishan) available at IITG.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •