summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-07-13 18:44:16 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-17 14:42:57 (GMT)
commitfd0523a215c70b75d7830a18e050b79fcdf333aa (patch)
tree66ffa8a1d0c13ff91428eb166f2d611b8c30fbc0 /Tests/CudaOnly
parentb07c71831c2ea42023dc27eb81e3099cefe35dd2 (diff)
downloadCMake-fd0523a215c70b75d7830a18e050b79fcdf333aa.zip
CMake-fd0523a215c70b75d7830a18e050b79fcdf333aa.tar.gz
CMake-fd0523a215c70b75d7830a18e050b79fcdf333aa.tar.bz2
CUDA: Properly de-duplicate libs when doing device linking
The nvcc device linker is designed so that each static library with device symbols only needs to be listed once as it doesn't care about link order. If you provide the same static library multiple times it will error out. To make sure this occurs we find the unique set of link items.
Diffstat (limited to 'Tests/CudaOnly')
-rw-r--r--Tests/CudaOnly/CircularLinkLine/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/CudaOnly/CircularLinkLine/CMakeLists.txt b/Tests/CudaOnly/CircularLinkLine/CMakeLists.txt
index 8efbb0f..c978e51 100644
--- a/Tests/CudaOnly/CircularLinkLine/CMakeLists.txt
+++ b/Tests/CudaOnly/CircularLinkLine/CMakeLists.txt
@@ -16,8 +16,7 @@ add_executable(CudaOnlyCircularLinkLine main.cu)
target_link_libraries(CUDACircularDeviceLinking1 PUBLIC CUDACircularDeviceLinking2)
target_link_libraries(CUDACircularDeviceLinking2 PUBLIC CUDACircularDeviceLinking3)
-#FIXME: complete the loop once supported
-#target_link_libraries(CUDACircularDeviceLinking3 PUBLIC CUDACircularDeviceLinking1)
+target_link_libraries(CUDACircularDeviceLinking3 PUBLIC CUDACircularDeviceLinking1)
target_link_libraries(CudaOnlyCircularLinkLine PRIVATE CUDACircularDeviceLinking3)