-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.sh
34 lines (24 loc) · 935 Bytes
/
build.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
#!/usr/bin/env bash
rm lattice_filter.so
mkdir build_dir
cd build_dir
CUDA_COMPILER=/usr/local/cuda/bin/nvcc
CXX_COMPILER=/usr/bin/g++-4.8
CUDA_INCLUDE=/usr/local/cuda/include/
SPATIAL_DIMS=2
INPUT_CHANNELS=3
REFERENCE_CHANNELS=3
MAKE_TESTS=False
cmake -DCMAKE_BUILD_TYPE=Debug -D CMAKE_CUDA_COMPILER=${CUDA_COMPILER} \
-D CMAKE_CXX_COMPILER=${CXX_COMPILER} \
-D CMAKE_CUDA_HOST_COMPILER=${CXX_COMPILER} \
-D CUDA_INCLUDE=${CUDA_INCLUDE} \
-D SPATIAL_DIMS=${SPATIAL_DIMS} \
-D INPUT_CHANNELS=${INPUT_CHANNELS} \
-D REFERENCE_CHANNELS=${REFERENCE_CHANNELS} \
-D MAKE_TESTS=${MAKE_TESTS} \
-G "CodeBlocks - Unix Makefiles" ../
make
cp lattice_filter.so ../
cd ..
rm -r build_dir