summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/SeparateCompilation/main/main.cu
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-01-12 15:36:25 (GMT)
committerunknown <rmaynard@nvidia.com>2023-01-16 16:27:13 (GMT)
commit0c56bdf91ed9c2b2fcf2ee7efb2f08b575ba4aae (patch)
treee21fe67524fff4dbc279a6d46bf4f01c939f4a99 /Tests/CudaOnly/SeparateCompilation/main/main.cu
parentdf978c5aa86f1c83828d114d9f57ba50c2e0ac6a (diff)
downloadCMake-0c56bdf91ed9c2b2fcf2ee7efb2f08b575ba4aae.zip
CMake-0c56bdf91ed9c2b2fcf2ee7efb2f08b575ba4aae.tar.gz
CMake-0c56bdf91ed9c2b2fcf2ee7efb2f08b575ba4aae.tar.bz2
CUDA: device linking obeys CMAKE_CUDA_VISIBILITY_PRESET setting
Fixes #24272
Diffstat (limited to 'Tests/CudaOnly/SeparateCompilation/main/main.cu')
-rw-r--r--Tests/CudaOnly/SeparateCompilation/main/main.cu4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CudaOnly/SeparateCompilation/main/main.cu b/Tests/CudaOnly/SeparateCompilation/main/main.cu
index 2b6e8f4..c3f7ce7 100644
--- a/Tests/CudaOnly/SeparateCompilation/main/main.cu
+++ b/Tests/CudaOnly/SeparateCompilation/main/main.cu
@@ -4,8 +4,8 @@
#include "../file1.h"
#include "../file2.h"
-int file4_launch_kernel(int x);
-int file5_launch_kernel(int x);
+IMPORT int file4_launch_kernel(int x);
+IMPORT int file5_launch_kernel(int x);
int choose_cuda_device()
{