summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-18 19:07:52 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-18 19:27:29 (GMT)
commitaf85fa7ac1a37ba063b375893ad4ecdd66d260bf (patch)
treeb25b2bd4560cfb9ccdc666e4026fbc7d8696b3d3 /Tests
parentd40bca5a8c5e85b48f2af788a5161015ae1585c3 (diff)
downloadCMake-af85fa7ac1a37ba063b375893ad4ecdd66d260bf.zip
CMake-af85fa7ac1a37ba063b375893ad4ecdd66d260bf.tar.gz
CMake-af85fa7ac1a37ba063b375893ad4ecdd66d260bf.tar.bz2
Tests: Remove unused dllexport markup from CudaOnly.DeviceLTO
The test does not use shared libraries.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CudaOnly/DeviceLTO/file1.cu8
-rw-r--r--Tests/CudaOnly/DeviceLTO/main.cu8
2 files changed, 2 insertions, 14 deletions
diff --git a/Tests/CudaOnly/DeviceLTO/file1.cu b/Tests/CudaOnly/DeviceLTO/file1.cu
index 703927c..5ca000d 100644
--- a/Tests/CudaOnly/DeviceLTO/file1.cu
+++ b/Tests/CudaOnly/DeviceLTO/file1.cu
@@ -1,16 +1,10 @@
-#ifdef _WIN32
-# define EXPORT __declspec(dllexport)
-#else
-# define EXPORT
-#endif
-
extern __device__ int file2_func(int);
void __global__ kernel(int x)
{
file2_func(x);
}
-EXPORT int launch_kernel(int x)
+int launch_kernel(int x)
{
kernel<<<1, 1>>>(x);
return x;
diff --git a/Tests/CudaOnly/DeviceLTO/main.cu b/Tests/CudaOnly/DeviceLTO/main.cu
index 8ef4873..bb72471 100644
--- a/Tests/CudaOnly/DeviceLTO/main.cu
+++ b/Tests/CudaOnly/DeviceLTO/main.cu
@@ -2,13 +2,7 @@
#include "cuda.h"
-#ifdef _WIN32
-# define IMPORT __declspec(dllimport)
-#else
-# define IMPORT
-#endif
-
-IMPORT int launch_kernel(int x);
+int launch_kernel(int x);
int choose_cuda_device()
{