-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun.sh
executable file
·32 lines (30 loc) · 1.29 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
echo "Building Larix software using CMake..."
echo "<<< Make sure you've got cython and nvcc compiler installed >>>"
rm -r build
mkdir build
cd build
#make clean
export VERSION=0.1.3
# install Python modules without CUDA
cmake ../ -DBUILD_PYTHON_WRAPPER=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
# install Python modules with CUDA
#cmake ../ -DBUILD_PYTHON_WRAPPER=ON -DBUILD_CUDA=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
make install
############### Python(linux)###############
cp install/lib/liblarix.so install/python/larix/methods
# copy testing script and data
cp ../tests/build_testing* install/python/
cp ../data/sino* install/python/
cp ../data/data3D_to_crop.npy.bz2 install/python/
cp ../data/volume_filteredCPU.npy.bz2 install/python/
cd install/python/
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../lib
#ipython build_testing.py
#ipython build_testing_3d_gener.py
#cuda-memcheck python build_testing_3d_gener.py
# another option is to run spyder and go the folder larix/build/install/python to be able to import modules
spyder --new-instance
# All built shared objects will be placed into larix/build/install/python/larix/methods
# in order to be able import modules you need to go to the folder larix/build/install/python to be able to import
# modules