Mentions légales du service

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

starpu: make sure starpu is compiled with cuda support when CUDA is enabled

parent e9e1093b
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !291. Comments created here will be created in the context of that merge request.
......@@ -125,6 +125,14 @@ if ( STARPU_FOUND )
message("-- ${Blue}Add definition HAVE_STARPU_MPI_COMM_GET_ATTR${ColourReset}")
endif()
endif()
if (CHAMELEON_USE_CUDA)
check_function_exists(starpu_cublas_get_local_handle HAVE_STARPU_CUBLAS_GET_LOCAL_HANDLE)
if ( NOT HAVE_STARPU_CUBLAS_GET_LOCAL_HANDLE )
message(FATAL_ERROR "The detected StarPU library does not include cublas support. Please disable CHAMELEON_USE_CUDA or provide a StarPU library with cublas support.")
endif()
endif()
morse_cmake_required_unset()
endif ( STARPU_FOUND )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment