File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,38 @@ SUITE="--xunit-testsuite-name="
1919FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR}
2020export 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
2254cd ${BUILDBOT_DIR}
2355if [ ! -d ${BUILDBOT_DIR} /Theano ]; then
2456 git clone git://github.com/Theano/Theano.git
You can’t perform that action at this time.
0 commit comments