Skip to content

Commit dfd7fc1

Browse files
committed
build: bump clang compiler version to 11.0.0 for DPCPP
1 parent 0759521 commit dfd7fc1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/FindDPCPP.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ if(sycl_root_hints)
4242
endif()
4343

4444
# XXX: workaround to use OpenCL from DPC++ package
45-
set(DPCPP_COMPILER_VERSION 10.0.0)
45+
set(DPCPP_COMPILER_VERSION 11.0.0)
4646

4747
if(DEFINED ENV{DPCPP_ROOT})
48+
list(INSERT CMAKE_PREFIX_PATH 0
49+
$ENV{DPCPP_ROOT}/compiler/latest/${dpcpp_os}/lib/clang/10.0.0)
4850
list(INSERT CMAKE_PREFIX_PATH 0
4951
$ENV{DPCPP_ROOT}/compiler/latest/${dpcpp_os}/lib/clang/${DPCPP_COMPILER_VERSION})
5052
endif()
@@ -68,6 +70,7 @@ find_path(DPCPP_INCLUDE_DIRS
6870
PATH_SUFFIXES
6971
include
7072
lib/clang/${DPCPP_COMPILER_VERSION}/include
73+
lib/clang/10.0.0/include
7174
NO_DEFAULT_PATH)
7275

7376
find_library(DPCPP_LIBRARIES

0 commit comments

Comments
 (0)