summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda
diff options
context:
space:
mode:
authorPierre Moreau <dev@pmoreau.org>2017-02-02 21:41:14 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-10 18:46:08 (GMT)
commit0ae5386aa953d1670074c2f1bfc9a04ddb382684 (patch)
tree1ec50d9eaa0224bb2239efc89438c34f4e4091ab /Tests/Cuda
parentce19607fed3990b8e828330e77f09061c99aa113 (diff)
downloadCMake-0ae5386aa953d1670074c2f1bfc9a04ddb382684.zip
CMake-0ae5386aa953d1670074c2f1bfc9a04ddb382684.tar.gz
CMake-0ae5386aa953d1670074c2f1bfc9a04ddb382684.tar.bz2
Tests/Cuda: Add missing separable compilation property
This resulted in `mixed_kernel()` returning an "invalid device function" at runtime for `file1_func()`. Suggested-by: Robert Maynard
Diffstat (limited to 'Tests/Cuda')
-rw-r--r--Tests/Cuda/Complex/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/Cuda/Complex/CMakeLists.txt b/Tests/Cuda/Complex/CMakeLists.txt
index 14454cf..2dd6f73 100644
--- a/Tests/Cuda/Complex/CMakeLists.txt
+++ b/Tests/Cuda/Complex/CMakeLists.txt
@@ -32,6 +32,8 @@ add_library(CudaComplexSharedLib SHARED dynamic.cu)
target_link_libraries(CudaComplexSharedLib PUBLIC CudaComplexCppBase)
add_library(CudaComplexMixedLib SHARED mixed.cpp mixed.cu)
+set_target_properties(CudaComplexMixedLib
+ PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
target_link_libraries(CudaComplexMixedLib
PUBLIC CudaComplexSharedLib
PRIVATE CudaComplexSeperableLib)