Skip to content

Commit

Permalink
Merge pull request #181 from slefrancois/add_gpuarray
Browse files Browse the repository at this point in the history
Install libgpuarray in dlt speed tests
  • Loading branch information
nouiz committed Jan 16, 2017
2 parents fe3dc30 + e481d33 commit 9c8d609
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .jenkins/jenkins_buildbot_dlt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,38 @@ SUITE="--xunit-testsuite-name="
FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR}
export PYTHONPATH=${BUILDBOT_DIR}/Theano:${BUILDBOT_DIR}/Pylearn:$PYTHONPATH

# Install libgpuarray and pygpu
cd ${BUILDBOT_DIR}

# Make fresh clone (with no history since we don't need it)
rm -rf libgpuarray
git clone --depth 1 "https://github.com/Theano/libgpuarray.git"

(cd libgpuarray && echo "libgpuarray commit" && git rev-parse HEAD)

# Clean up previous installs (to make sure no old files are left)
rm -rf local
mkdir local

# Build libgpuarray and run C tests
mkdir libgpuarray/build
(cd libgpuarray/build && cmake .. -DCMAKE_BUILD_TYPE=${GPUARRAY_CONFIG} -DCMAKE_INSTALL_PREFIX=${BUILDBOT_DIR}/local && make)

# Finally install
(cd libgpuarray/build && make install)
export LD_LIBRARY_PATH=${BUILDBOT_DIR}/local/lib:${LD_LIBRARY_PATH}
export LIBRARY_PATH=${BUILDBOT_DIR}/local/lib:${LIBRARY_PATH}
export CPATH=${BUILDBOT_DIR}/local/include:${CPATH}

# Build the pygpu modules
(cd libgpuarray && python setup.py build_ext --inplace -I${BUILDBOT_DIR}/local/include -L${BUILDBOT_DIR}/local/lib)

mkdir ${BUILDBOT_DIR}/local/lib/python
export PYTHONPATH=${PYTHONPATH}:${BUILDBOT_DIR}/local/lib/python
# Then install
(cd libgpuarray && python setup.py install --home=${BUILDBOT_DIR}/local)

# Install Theano
cd ${BUILDBOT_DIR}
if [ ! -d ${BUILDBOT_DIR}/Theano ]; then
git clone git://github.com/Theano/Theano.git
Expand Down

0 comments on commit 9c8d609

Please sign in to comment.