Skip to content

Commit 9c8d609

Browse files
authored
Merge pull request lisa-lab#181 from slefrancois/add_gpuarray
Install libgpuarray in dlt speed tests
2 parents fe3dc30 + e481d33 commit 9c8d609

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.jenkins/jenkins_buildbot_dlt.sh

+32
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,38 @@ SUITE="--xunit-testsuite-name="
1919
FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR}
2020
export PYTHONPATH=${BUILDBOT_DIR}/Theano:${BUILDBOT_DIR}/Pylearn:$PYTHONPATH
2121

22+
# Install libgpuarray and pygpu
23+
cd ${BUILDBOT_DIR}
24+
25+
# Make fresh clone (with no history since we don't need it)
26+
rm -rf libgpuarray
27+
git clone --depth 1 "https://github.com/Theano/libgpuarray.git"
28+
29+
(cd libgpuarray && echo "libgpuarray commit" && git rev-parse HEAD)
30+
31+
# Clean up previous installs (to make sure no old files are left)
32+
rm -rf local
33+
mkdir local
34+
35+
# Build libgpuarray and run C tests
36+
mkdir libgpuarray/build
37+
(cd libgpuarray/build && cmake .. -DCMAKE_BUILD_TYPE=${GPUARRAY_CONFIG} -DCMAKE_INSTALL_PREFIX=${BUILDBOT_DIR}/local && make)
38+
39+
# Finally install
40+
(cd libgpuarray/build && make install)
41+
export LD_LIBRARY_PATH=${BUILDBOT_DIR}/local/lib:${LD_LIBRARY_PATH}
42+
export LIBRARY_PATH=${BUILDBOT_DIR}/local/lib:${LIBRARY_PATH}
43+
export CPATH=${BUILDBOT_DIR}/local/include:${CPATH}
44+
45+
# Build the pygpu modules
46+
(cd libgpuarray && python setup.py build_ext --inplace -I${BUILDBOT_DIR}/local/include -L${BUILDBOT_DIR}/local/lib)
47+
48+
mkdir ${BUILDBOT_DIR}/local/lib/python
49+
export PYTHONPATH=${PYTHONPATH}:${BUILDBOT_DIR}/local/lib/python
50+
# Then install
51+
(cd libgpuarray && python setup.py install --home=${BUILDBOT_DIR}/local)
52+
53+
# Install Theano
2254
cd ${BUILDBOT_DIR}
2355
if [ ! -d ${BUILDBOT_DIR}/Theano ]; then
2456
git clone git://github.com/Theano/Theano.git

0 commit comments

Comments
 (0)