Set KOKKOS_PATH to build Kokkos version

This commit is contained in:
Tom Deakin 2016-05-12 12:31:16 +01:00
parent 88d194b75c
commit 2381f059ed

View File

@ -105,14 +105,14 @@ endif ()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Kokkos # Kokkos
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
if (BUILD_KOKKOS) if (KOKKOS_PATH)
if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
add_custom_target(gpu-stream-kokkos COMMAND make -f KokkosMakefile) add_custom_target(gpu-stream-kokkos COMMAND make -f KokkosMakefile)
else() else()
message("Skipping Kokkos (requires Linux)") message("Skipping Kokkos (requires Linux)")
endif() endif()
else() else()
message("Skipping Kokkos... (use -DBUILD_KOKKOS=1 to opt in)") message("Skipping Kokkos... (use -DKOKKOS_PATH=/path/to/kokkos to opt in)")
endif() endif()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------