Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Removed stale `select_host_device` and `has_host_device` names from `dpctl.__all__`, which made `from dpctl import *` fail with `AttributeError` [gh-2410](https://github.com/IntelPython/dpctl/pull/2410)
* A USM allocation that fails now drops the references held for offloaded tasks that have completed, and is attempted once more if that released anything, so that memory only waiting to be given up is not reported as unavailable [gh-2359](https://github.com/IntelPython/dpctl/pull/2359)
* `dpctl.SyclPlatform.get_devices` no longer prints Unified Runtime warnings for `device_type="custom"` on non-OpenCL platforms, where custom devices are not supported [gh-2306](https://github.com/IntelPython/dpctl/pull/2306)
* Fixed building with the open source DPC++ compiler and CMake 4.5 or newer, which identifies it as `DPClang` instead of `Clang` [gh-2433](https://github.com/IntelPython/dpctl/pull/2433)

### Maintenance
* Removed the `-fno-sycl-id-queries-fit-in-int` compile option, which none of the `dpctl` extensions need since `dpctl.tensor` moved to `dpnp` [gh-2413](https://github.com/IntelPython/dpctl/pull/2413)
Expand Down
3 changes: 3 additions & 0 deletions cmake/IntelSYCLConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "x")
endif()

# Check for known compiler family that supports SYCL
# (CMake 4.5 and newer identify the open source DPC++ 7.0 and newer as DPClang)

if( NOT "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xClang" AND
NOT "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xDPClang" AND
NOT "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xIntelLLVM")
set(IntelSYCL_FOUND False)
set(SYCL_REASON_FAILURE "Unsupported compiler family ${CMAKE_CXX_COMPILER_ID} and compiler ${CMAKE_CXX_COMPILER}!!")
Expand Down Expand Up @@ -247,6 +249,7 @@ set(SYCL_LINK_FLAGS "")

# Based on Compiler ID, add support for SYCL
if( "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xClang" OR
"x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xDPClang" OR
"x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xIntelLLVM")
list(APPEND SYCL_FLAGS "-fsycl")
list(APPEND SYCL_LINK_FLAGS "-fsycl")
Expand Down
2 changes: 1 addition & 1 deletion cmake/WindowsClangClLinkRules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if(CMAKE_GENERATOR MATCHES "Visual Studio")
endif()

foreach(_lang C CXX)
if(NOT CMAKE_${_lang}_COMPILER_ID STREQUAL "Clang"
if(NOT CMAKE_${_lang}_COMPILER_ID MATCHES "^(Clang|DPClang)$"
OR NOT CMAKE_${_lang}_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC"
OR CMAKE_${_lang}_LINK_MODE STREQUAL "DRIVER")
continue()
Expand Down
2 changes: 1 addition & 1 deletion dpctl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ find_package(Cython REQUIRED)

if(WIN32)
# clang-cl reads -Wall as /Wall, i.e. -Weverything
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|DPClang)$")
set(_dpctl_wall_flag "/W3 ")
else()
set(_dpctl_wall_flag "-Wall ")
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ set(CMAKE_CXX_STANDARD 17)

if(WIN32)
# clang-cl reads -Wall as /Wall, i.e. -Weverything
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|DPClang)$")
set(_dpctl_wall_flag "/W3 ")
else()
set(_dpctl_wall_flag "-Wall ")
Expand Down
Loading