mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
Tests: Remove unused dllexport markup from CudaOnly.DeviceLTO
The test does not use shared libraries.
This commit is contained in:
@@ -1,16 +1,10 @@
|
|||||||
#ifdef _WIN32
|
|
||||||
# define EXPORT __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
# define EXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern __device__ int file2_func(int);
|
extern __device__ int file2_func(int);
|
||||||
void __global__ kernel(int x)
|
void __global__ kernel(int x)
|
||||||
{
|
{
|
||||||
file2_func(x);
|
file2_func(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT int launch_kernel(int x)
|
int launch_kernel(int x)
|
||||||
{
|
{
|
||||||
kernel<<<1, 1>>>(x);
|
kernel<<<1, 1>>>(x);
|
||||||
return x;
|
return x;
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
|
|
||||||
#include "cuda.h"
|
#include "cuda.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
int launch_kernel(int x);
|
||||||
# define IMPORT __declspec(dllimport)
|
|
||||||
#else
|
|
||||||
# define IMPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
IMPORT int launch_kernel(int x);
|
|
||||||
|
|
||||||
int choose_cuda_device()
|
int choose_cuda_device()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user