summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralgol <dkazanc@hotmail.com>2018-02-08 16:44:29 +0000
committerEdoardo Pasca <edo.paskino@gmail.com>2018-02-09 16:24:47 +0000
commite3074f221e063c91a08e9a05ed419b6b8557d5ca (patch)
treecd7e660efe9f45df8479e47e261ef5d011c924e4
parenteb2633a1cd839a3cc9af23b95c0257648ad7e4d5 (diff)
downloadregularization-e3074f221e063c91a08e9a05ed419b6b8557d5ca.tar.gz
regularization-e3074f221e063c91a08e9a05ed419b6b8557d5ca.tar.bz2
regularization-e3074f221e063c91a08e9a05ed419b6b8557d5ca.tar.xz
regularization-e3074f221e063c91a08e9a05ed419b6b8557d5ca.zip
Added flag for NVCC and ubuntu 16.04
https://groups.google.com/forum/#!msg/caffe-users/Tm3OsZBwN9Q/XKGRKNdmBAAJ
-rw-r--r--Core/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Core/CMakeLists.txt b/Core/CMakeLists.txt
index fec49da..dceb828 100644
--- a/Core/CMakeLists.txt
+++ b/Core/CMakeLists.txt
@@ -123,6 +123,8 @@ endif()
find_package(CUDA)
if (CUDA_FOUND)
+ set(CUDA_NVCC_FLAGS "-Xcompiler -fPIC -shared -D_FORCE_INLINES")
+ message("CUDA FLAGS ${CUDA_NVCC_FLAGS}")
CUDA_ADD_LIBRARY(cilregcuda SHARED
${CMAKE_CURRENT_SOURCE_DIR}/regularizers_GPU/Diffus_HO/Diff4th_GPU_kernel.cu
${CMAKE_CURRENT_SOURCE_DIR}/regularizers_GPU/NL_Regul/NLM_GPU_kernel.cu