Skip to content

Commit

Permalink
fix icx build
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Nov 25, 2024
1 parent dacec9d commit fe4d5e9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions cmake/BuildSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,12 @@ elseif ("${FIRESTARTER_BUILD_TYPE}" STREQUAL "FIRESTARTER_CUDA")

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DFIRESTARTER_BUILD_CUDA")
elseif ("${FIRESTARTER_BUILD_TYPE}" STREQUAL "FIRESTARTER_ONEAPI")
find_program(ICX_PRESENT icx)
find_program(ICX_PATH icx REQUIRED)

if(ICX_PRESENT)
message(STATUS "Executable found: ${ICX_PRESENT}")
else()
message(FATAL_ERROR "OneAPI Intel Compiler icx not found")
endif()
message(STATUS "Path of icx executable is: ${ICX_PATH}")

SET(CMAKE_CXX_COMPILER "icx")
SET(CMAKE_C_COMPILER "icx")
SET(CMAKE_CXX_COMPILER ${ICX_PATH})
SET(CMAKE_C_COMPILER ${ICX_PATH})

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -DFIRESTARTER_BUILD_ONEAPI")
elseif("${FIRESTARTER_BUILD_TYPE}" STREQUAL "FIRESTARTER_HIP")
Expand Down

0 comments on commit fe4d5e9

Please sign in to comment.