You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(STATUS"Using Intel SYCL C++ compiler: ${ICPX_COMPILER} and C compiler: ${ICX_COMPILER} Version: ${DPCPP_VERSION}")
15
+
16
+
# On Windows, use icx (MSVC-compatible) for C++ to work with Ninja generator
17
+
# On Linux, use icpx (GNU-compatible) for C++
18
+
if(WIN32)
19
+
set(CMAKE_CXX_COMPILER ${ICX_COMPILER})
20
+
message(STATUS"Using Intel SYCL C++ compiler: ${ICX_COMPILER} and C compiler: ${ICX_COMPILER} Version: ${DPCPP_VERSION} (Windows MSVC-compatible mode)")
21
+
else()
22
+
set(CMAKE_CXX_COMPILER ${ICPX_COMPILER})
23
+
message(STATUS"Using Intel SYCL C++ compiler: ${ICPX_COMPILER} and C compiler: ${ICX_COMPILER} Version: ${DPCPP_VERSION}")
24
+
endif()
17
25
else()
18
26
message(FATAL_ERROR "Intel SYCL C++ compiler (icpx) and/or C compiler (icx) not found. Please install Intel oneAPI toolkit.")
0 commit comments