Skip to content

Commit

Permalink
Disable babelstream example for nvcc 11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Dec 13, 2022
1 parent fa69ddb commit 6b4270b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/alpaka/babelstream/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ if (NOT TARGET llama::llama)
find_package(llama REQUIRED)
endif()
find_package(alpaka 0.9.0 REQUIRED)
if (alpaka_ACC_GPU_CUDA_ENABLE AND (CMAKE_CUDA_COMPILER_ID STREQUALS "NVIDIA") AND
(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "11.3") AND (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "11.4"))
message(FATAL_ERROR "nvcc 11.3 fails to compile babelstream. Example will not be built.")
return()
endif ()
alpaka_add_executable(${PROJECT_NAME} main.cpp Stream.h AlpakaStream.cpp AlpakaStream.h)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
target_compile_definitions(${PROJECT_NAME} PUBLIC ALPAKA)
Expand Down

0 comments on commit 6b4270b

Please sign in to comment.