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