summaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorDaniil Kazantsev <dkazanc@hotmail.com>2018-12-02 19:01:42 +0000
committerDaniil Kazantsev <dkazanc@hotmail.com>2018-12-02 19:01:42 +0000
commita48c9e69e941ec4046aca9d5d6ec453b9e9debdc (patch)
treef62cbc2b1d51aff9aaff14e1675f932f1922dde8 /run.sh
parentd252fcf6889855bb276cf6f9bf516e61910c064f (diff)
downloadregularization-a48c9e69e941ec4046aca9d5d6ec453b9e9debdc.tar.gz
regularization-a48c9e69e941ec4046aca9d5d6ec453b9e9debdc.tar.bz2
regularization-a48c9e69e941ec4046aca9d5d6ec453b9e9debdc.tar.xz
regularization-a48c9e69e941ec4046aca9d5d6ec453b9e9debdc.zip
cythonised nltv and updated demo, readme, bash run added
Diffstat (limited to 'run.sh')
-rw-r--r--run.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100644
index 0000000..98b792e
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+echo "Building CCPi-regularisation Toolkit using CMake"
+# rm -r build
+# Requires Cython, install it first:
+# pip install cython
+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
+# cmake ../ -DBUILD_PYTHON_WRAPPER=ON -DBUILD_MATLAB_WRAPPER=OFF -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
+# spyder
+# one can also run Matlab in Linux as:
+# PATH="/path/to/mex/:$PATH" LD_LIBRARY_PATH="/path/to/library:$LD_LIBRARY_PATH" matlab