summaryrefslogtreecommitdiff
path: root/Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu')
-rw-r--r--Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu b/Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu
new file mode 100644
index 000000000..c57b8a828
--- /dev/null
+++ b/Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu
@@ -0,0 +1,9 @@
+
+#if defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H)
+
+# include <pthread.h>
+static int verify_linking_to_pthread_cuda()
+{
+ return static_cast<int>(pthread_self());
+}
+#endif