summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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