GeezerVison is showing github.com — Merge pull request #181 from slefrancois/add_gpuarray · bekerov/DeepLearningTutorials@9c8d609
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .jenkins/jenkins_buildbot_dlt.sh +32Lines changed: 32 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,38 @@ SUITE="--xunit-testsuite-name=" |
19 | 19 | FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR} |
20 | 20 | export PYTHONPATH=${BUILDBOT_DIR}/Theano:${BUILDBOT_DIR}/Pylearn:$PYTHONPATH |
21 | 21 |
|
| 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 |
22 | 54 | cd ${BUILDBOT_DIR} |
23 | 55 | if [ ! -d ${BUILDBOT_DIR}/Theano ]; then |
24 | 56 | git clone git://github.com/Theano/Theano.git |
|