Skip to content

Commit

Permalink
Fixed Intel SYCL include path
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Apr 15, 2024
1 parent fd2d5ca commit 3d59ec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ if(IntelSYCL_FOUND AND OPENMIND_USE_OPENCL_INTEL_SYCL
AND NOT EXISTS OpenCL_INCLUDE_DIR
AND EXISTS IntelSYCL_DIR
)
set(OpenCL_INCLUDE_DIR "${IntelSYCL_DIR}/../../../sycl" CACHE PATH "IntelSYCL is used for OpenCL" FORCE)
set(OpenCL_INCLUDE_DIR "${IntelSYCL_DIR}/../../../include/sycl" CACHE PATH "IntelSYCL is used for OpenCL" FORCE)
endif()

option(OPENMIND_USE_OPENCL "Use OpenCL calculations" ${OpenCL_FOUND})
Expand Down
4 changes: 2 additions & 2 deletions cmake/bins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ function(apply_target_commons this_target)
if(OPENMIND_USE_OPENCL_INTEL_SYCL)
target_compile_options(${this_target} PUBLIC ${SYCL_FLAGS})
target_include_directories(${this_target} PUBLIC
"${IntelSYCL_DIR}/../../.."
"${IntelSYCL_DIR}/../../../sycl"
"${IntelSYCL_DIR}/../../../include"
"${IntelSYCL_DIR}/../../../include/sycl"
)
endif(OPENMIND_USE_OPENCL_INTEL_SYCL)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
Expand Down

0 comments on commit 3d59ec8

Please sign in to comment.