Skip to content

Instantly share code, notes, and snippets.

@boegel
Last active December 15, 2015 04:50
Show Gist options
  • Save boegel/5204622 to your computer and use it in GitHub Desktop.
Save boegel/5204622 to your computer and use it in GitHub Desktop.
EasyBuild test: installing CUDA on CentOS
#!/bin/bash
export MYTMPDIR=/tmp/test_eb
export EASYBUILDSOURCEPATH=$MYTMPDIR
export EASYBUILDBUILDPATH=$MYTMPDIR
export EASYBUILDINSTALLPATH=$MYTMPDIR
export MODULEPATH=$MYTMPDIR/modules/all
# prep
mkdir -p $MYTMPDIR/lib/python2.6/site-packages
export PYTHONPATH=$MYTMPDIR/lib/python2.6/site-packages:$PYTHONPATH
export PATH=$MYTMPDIR/bin:$PATH
# install EasyBuild (pre-)dev version
easy_install --prefix $MYTMPDIR http://github.com/boegel/easybuild-framework/archive/system_name_version.tar.gz
easy_install --prefix $MYTMPDIR http://github.com/boegel/easybuild-easyblocks/archive/contrib_CUDA_easyblock.tar.gz
# get easyconfig file
wget https://raw.github.com/fgeorgatos/easybuild-easyconfigs/f102e44102c202742e79042abd36814b6154ec21/easybuild/easyconfigs/c/CUDA/CUDA-5.0.35.eb
# build CUDA with EasyBuild (download a 670MB file from nvidia.com!)
eb CUDA-5.0.35.eb -ld 2>&1 | tee $MYTMPDIR/CUDA.out
# COMPLETED?
module av CUDA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment