summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/SharedRuntimePlusToolkit/shared.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CudaOnly/SharedRuntimePlusToolkit/shared.cu')
-rw-r--r--Tests/CudaOnly/SharedRuntimePlusToolkit/shared.cu16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/CudaOnly/SharedRuntimePlusToolkit/shared.cu b/Tests/CudaOnly/SharedRuntimePlusToolkit/shared.cu
new file mode 100644
index 0000000..f3c3dbc
--- /dev/null
+++ b/Tests/CudaOnly/SharedRuntimePlusToolkit/shared.cu
@@ -0,0 +1,16 @@
+
+#ifdef _WIN32
+# define IMPORT __declspec(dllimport)
+# define EXPORT __declspec(dllexport)
+#else
+# define IMPORT
+# define EXPORT
+#endif
+
+int curand_main();
+int nppif_main();
+
+EXPORT int shared_version()
+{
+ return curand_main() == 0 && nppif_main() == 0;
+}