Skip to content

Commit

Permalink
Disable alpaka PIC example for recent MSVC
Browse files Browse the repository at this point in the history
MSVC fails to compile the example starting with version 19.37.
  • Loading branch information
bernhardmgruber committed Nov 13, 2023
1 parent c7802ca commit 92d2f2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/alpaka/pic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
cmake_minimum_required (VERSION 3.18.3)
project(llama-alpaka-pic)

if (MSVC AND MSVC_VERSION VERSION_GREATER_EQUAL 19.37)
# a failing MSVC version is 19.37.32825.0. A working version was 19.35.32217.1.
message(WARNING "MSVC 19.37 or higher fails with an internal error on the alpaka pic example, so it is disabled.")
return()
endif()

if (NOT TARGET llama::llama)
find_package(llama REQUIRED)
endif()
Expand Down

0 comments on commit 92d2f2e

Please sign in to comment.