mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Convert the `CudaOnly.LinkSystemDeviceLibraries` test to a new `Cuda.ProperDeviceLibraries` test. The former covered only the `cublas_device` library which is removed by CUDA 10. Extend the new test to also cover various cases of using threads. Issue: #18008
10 lines
181 B
Plaintext
10 lines
181 B
Plaintext
|
|
#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
|