diff options
author | Brad King <brad.king@kitware.com> | 2016-12-07 16:45:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-12 15:39:04 (GMT) |
commit | 5599d858c7881b4331c449ba5c59d255ed50bd11 (patch) | |
tree | 9461bf2509ff5b14e6442b2cfde2c8808bd49dc1 /Tests/CudaOnly/EnableStandard/main.cu | |
parent | 1155170230ebd096df06ebf108908d6c99242d6d (diff) | |
download | CMake-5599d858c7881b4331c449ba5c59d255ed50bd11.zip CMake-5599d858c7881b4331c449ba5c59d255ed50bd11.tar.gz CMake-5599d858c7881b4331c449ba5c59d255ed50bd11.tar.bz2 |
CUDA: Port test cases to Windows with MSVC host compiler
Diffstat (limited to 'Tests/CudaOnly/EnableStandard/main.cu')
-rw-r--r-- | Tests/CudaOnly/EnableStandard/main.cu | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/CudaOnly/EnableStandard/main.cu b/Tests/CudaOnly/EnableStandard/main.cu index 83e9dfd..f7144e6 100644 --- a/Tests/CudaOnly/EnableStandard/main.cu +++ b/Tests/CudaOnly/EnableStandard/main.cu @@ -1,8 +1,14 @@ #include <iostream> +#ifdef _WIN32 +#define IMPORT __declspec(dllimport) +#else +#define IMPORT +#endif + int static_cuda11_func(int); -int shared_cuda11_func(int); +IMPORT int shared_cuda11_func(int); void test_functions() { |