diff options
author | Daniil Kazantsev <dkazanc3@googlemail.com> | 2019-02-19 22:14:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 22:14:48 +0000 |
commit | 8e71dd67abef0caddb24caa365321d3874529254 (patch) | |
tree | 108c7e25e3d741ca04ef45aa29eb61a9732075f4 /run.sh | |
parent | 8f2e86726669b9dadb3c788e0ea681d397a2eeb7 (diff) | |
parent | 53d5508915709245d0573e0335de83fc24313b5a (diff) | |
download | regularization-8e71dd67abef0caddb24caa365321d3874529254.tar.gz regularization-8e71dd67abef0caddb24caa365321d3874529254.tar.bz2 regularization-8e71dd67abef0caddb24caa365321d3874529254.tar.xz regularization-8e71dd67abef0caddb24caa365321d3874529254.zip |
Merge pull request #99 from vais-ral/TGV_bugfix
TGV bugfix
Diffstat (limited to 'run.sh')
-rw-r--r-- | run.sh | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -1,19 +1,22 @@ #!/bin/bash echo "Building CCPi-regularisation Toolkit using CMake" -# rm -r build +rm -r build # Requires Cython, install it first: # pip install cython -# mkdir build +mkdir build cd build/ make clean -# install Python modules only without CUDA -cmake ../ -DBUILD_PYTHON_WRAPPER=ON -DBUILD_MATLAB_WRAPPER=OFF -DBUILD_CUDA=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install -# install Python modules only with CUDA +# install Python modules without CUDA +#cmake ../ -DBUILD_PYTHON_WRAPPER=ON -DBUILD_MATLAB_WRAPPER=OFF -DBUILD_CUDA=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install +# install Python modules with CUDA # cmake ../ -DBUILD_PYTHON_WRAPPER=ON -DBUILD_MATLAB_WRAPPER=OFF -DBUILD_CUDA=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install +# install Matlab modules with CUDA +cmake ../ -DBUILD_PYTHON_WRAPPER=OFF -DMatlab_ROOT_DIR=/dls_sw/apps/matlab/r2014a/ -DBUILD_MATLAB_WRAPPER=ON -DBUILD_CUDA=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install make install # cp install/lib/libcilreg.so install/python/ccpi/filters -cd install/python -export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../lib +#cd install/python +#export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../lib # spyder # one can also run Matlab in Linux as: -# PATH="/path/to/mex/:$PATH" LD_LIBRARY_PATH="/path/to/library:$LD_LIBRARY_PATH" matlab +#PATH="/path/to/mex/:$PATH" LD_LIBRARY_PATH="/path/to/library:$LD_LIBRARY_PATH" matlab +PATH="/home/kjy41806/Documents/SOFT/CCPi-Regularisation-Toolkit/build/install/matlab/:$PATH" LD_LIBRARY_PATH="/home/kjy41806/Documents/SOFT/CCPi-Regularisation-Toolkit/build/install/lib:$LD_LIBRARY_PATH" matlab |