Skip to content

Latest commit

 

History

History

dtu-hpc-python2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

DTU HPC – Python 2.7

Install python and friends on DTUs shared user system. In particually with OpenCL and CUDA support.

I no longer maintain this for python 2.7 and suggest you use python 3.4 script instead of possible.

Note on login

Note the install part only works when using hpc-fe.gbar.dtu.dk as the ssh host! ThinLinc and login.gbar.dtu.dk won’t work. This is because k40sh is needed to compile the OpenCL and CUDA parts. The SSH guide can be found here: http://gbar.dtu.dk/faq/53-ssh (just be sure to replace login.gbar.dtu.dk with hpc-fe.gbar.dtu.dk).

Run setup script

Type or copy this after connecting with SSH, using time this have been measured to take 37 minutes:

k40sh
wget https://raw.githubusercontent.com/AndreasMadsen/my-setup/master/dtu-hpc-python2/setup-python2.sh
sh setup_python2.sh
rm -f setup_python2.sh
exit

After install and future login

For any future login and after the installation run one of these:

If you need OpenCL or CUDA run:

k40sh
module load python
module load gcc
module load cuda/6.0
source ~/stdpy/bin/activate

Otherwise use:

qrsh
module load python
module load gcc
source ~/stdpy/bin/activate

Personally I have all the module and source stuff in my .profile.sh file.