Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1ae64da3 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

cuda: Remove unused cmake check_function_exist

parent b647c9c2
No related branches found
No related tags found
1 merge request!267StarPU: refactor GPU codelets
...@@ -366,15 +366,6 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -366,15 +366,6 @@ if(NOT CHAMELEON_SIMULATION)
endif() endif()
if (CUDA_LIBRARIES) if (CUDA_LIBRARIES)
set_target_properties(CUDA::CUDA PROPERTIES INTERFACE_LINK_LIBRARIES "${CUDA_LIBRARIES}") set_target_properties(CUDA::CUDA PROPERTIES INTERFACE_LINK_LIBRARIES "${CUDA_LIBRARIES}")
set(CMAKE_REQUIRED_INCLUDES "${CUDA_INCLUDE_DIRS}")
set(CMAKE_REQUIRED_LIBRARIES "${CUDA_LIBRARIES}")
if(CUDA_VERSION VERSION_LESS "4.0")
set(CUDA_HAVE_PEER_DEVICE_MEMORY_ACCESS 0)
else()
check_function_exists(cuDeviceCanAccessPeer CUDA_HAVE_PEER_DEVICE_MEMORY_ACCESS)
endif()
unset(CMAKE_REQUIRED_INCLUDES)
unset(CMAKE_REQUIRED_LIBRARIES)
# Add cublas if found # Add cublas if found
if (CUDA_CUBLAS_LIBRARIES) if (CUDA_CUBLAS_LIBRARIES)
set_target_properties(CUDA::CUBLAS PROPERTIES INTERFACE_LINK_LIBRARIES "${CUDA_CUBLAS_LIBRARIES}") set_target_properties(CUDA::CUBLAS PROPERTIES INTERFACE_LINK_LIBRARIES "${CUDA_CUBLAS_LIBRARIES}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment