Commit 07961bc8 authored by Valeriu Codreanu's avatar Valeriu Codreanu
Browse files

added guards and messages to CMakeLists.txt from...

added guards and messages to CMakeLists.txt from dense_linear_algebra,monte_carlo_methods,sparse_linear_algebra,structured_grids dwarfs
parent ee64cf42
......@@ -32,13 +32,19 @@ find_library(CLBLAS_LIBRARIES
# GEMM with the OpenCL clBLAS library
set(NAME ${DWARF_PREFIX}_gemm_clblas)
if (OPENCL_FOUND)
if (OPENCL_FOUND AND CLBLAS_FOUND)
include_directories(${OPENCL_INCLUDE_DIRS})
include_directories(${CLBLAS_INCLUDE_DIRS})
add_executable(${NAME} src/sgemm_clblas.c)
target_link_libraries(${NAME} ${OPENCL_LIBRARIES})
target_link_libraries(${NAME} ${CLBLAS_LIBRARIES})
install(TARGETS ${NAME} DESTINATION bin)
message("** Enabling '${NAME}': with OpenCL and clBLAS")
else()
message("## Skipping '${NAME}_omp': no MPI or OpenMP support found")
dummy_install(${NAME} "MPI_OpenMP")
endif()
unset(NAME)
......@@ -56,6 +56,7 @@ endif()
if (CUDA_FOUND)
if (NOT CUDA_cusolver_LIBRARY)
dummy_install(${NAME} "CUDA CUSOLVER library")
message("## Skipping '${NAME}': no cuSOLVER support found")
return()
endif()
cuda_add_executable(${NAME} src/lud_cusolver.cpp)
......
......@@ -60,6 +60,7 @@ if (CUDA_FOUND)
install(CODE "MESSAGE(\"${NAME} can only be built with MKL.\")")
else (NOT ${MKL_FOUND})
if (NOT CUDA_cusolver_LIBRARY)
message("## Skipping '${NAME}': no cuSOLVER support found")
dummy_install(${NAME} "CUDA CUSOLVER library")
return()
endif()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment