diff options
Diffstat (limited to 'Tests/Cuda/ProperDeviceLibraries/use_pthreads.cxx')
-rw-r--r-- | Tests/Cuda/ProperDeviceLibraries/use_pthreads.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/Cuda/ProperDeviceLibraries/use_pthreads.cxx b/Tests/Cuda/ProperDeviceLibraries/use_pthreads.cxx new file mode 100644 index 0000000..dc7c208 --- /dev/null +++ b/Tests/Cuda/ProperDeviceLibraries/use_pthreads.cxx @@ -0,0 +1,9 @@ + +#if defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H) + +# include <pthread.h> +static int verify_linking_to_pthread_cxx() +{ + return static_cast<int>(pthread_self()); +} +#endif |