summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/StaticRuntimePlusToolkit/curand.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CudaOnly/StaticRuntimePlusToolkit/curand.cu')
-rw-r--r--Tests/CudaOnly/StaticRuntimePlusToolkit/curand.cu8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/CudaOnly/StaticRuntimePlusToolkit/curand.cu b/Tests/CudaOnly/StaticRuntimePlusToolkit/curand.cu
index 95872f0..fdd7b53 100644
--- a/Tests/CudaOnly/StaticRuntimePlusToolkit/curand.cu
+++ b/Tests/CudaOnly/StaticRuntimePlusToolkit/curand.cu
@@ -1,6 +1,12 @@
// Comes from:
// https://docs.nvidia.com/cuda/curand/host-api-overview.html#host-api-example
+#ifdef _WIN32
+# define EXPORT __declspec(dllexport)
+#else
+# define EXPORT
+#endif
+
/*
* This program uses the host CURAND API to generate 100
* pseudorandom floats.
@@ -25,7 +31,7 @@
} \
} while (0)
-int curand_main()
+EXPORT int curand_main()
{
size_t n = 100;
size_t i;