diff options
Diffstat (limited to 'Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu')
-rw-r--r-- | Tests/Cuda/ProperDeviceLibraries/use_pthreads.cu | 9 |
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 0000000..c57b8a8 --- /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 |