diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-11-22 17:42:35 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-11-23 14:27:42 (GMT) |
commit | 54d80440840edd14a0c9f7324525dc0b0f4c3808 (patch) | |
tree | bd1d03f941f625cbe0b5f80fca031591d0637468 /Tests/Cuda/StaticRuntimePlusToolkit/nppif.cpp | |
parent | 9278ae6f1b80e2694300b5eed2d3dde6cc43b167 (diff) | |
download | CMake-54d80440840edd14a0c9f7324525dc0b0f4c3808.zip CMake-54d80440840edd14a0c9f7324525dc0b0f4c3808.tar.gz CMake-54d80440840edd14a0c9f7324525dc0b0f4c3808.tar.bz2 |
Tests: Don't presume that Linux CUDA Toolkits provide static libs
Diffstat (limited to 'Tests/Cuda/StaticRuntimePlusToolkit/nppif.cpp')
-rw-r--r-- | Tests/Cuda/StaticRuntimePlusToolkit/nppif.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/Cuda/StaticRuntimePlusToolkit/nppif.cpp b/Tests/Cuda/StaticRuntimePlusToolkit/nppif.cpp index 2871090..ac5341c 100644 --- a/Tests/Cuda/StaticRuntimePlusToolkit/nppif.cpp +++ b/Tests/Cuda/StaticRuntimePlusToolkit/nppif.cpp @@ -1,6 +1,12 @@ // Comes from // https://devtalk.nvidia.com/default/topic/1037482/gpu-accelerated-libraries/help-me-help-you-with-modern-cmake-and-cuda-mwe-for-npp/post/5271066/#5271066 +#ifdef _WIN32 +# define EXPORT __declspec(dllexport) +#else +# define EXPORT +#endif + #include <cstdio> #include <iostream> @@ -8,7 +14,7 @@ #include <cuda_runtime_api.h> #include <nppi_filtering_functions.h> -int nppif_main() +EXPORT int nppif_main() { /** * 8-bit unsigned single-channel 1D row convolution. |