Repository navigation
·
75 commits
to master
since this release
This release extends the SYCL interface exposed by dpctl in several directions: dpctl.compiler.SyclKernelBundle objects can now be built from SYCL source strings via the DPC++ kernel_compiler extension, SPIR-V specialization constants are supported, USM-device allocations can be shared between processes using the SYCL IPC memory extension, and dpctl.SyclQueue gained copy, memset, and fill methods along with their asynchronous counterparts. The package can now be used with free-threaded builds of CPython 3.14 and supports Python 3.15. The dpctl.program submodule is deprecated in favor of dpctl.compiler, which better describes its purpose.
NOTE: This release contains breaking changes:
- Device and platform collection APIs, as well as
dpctl.SyclDevice.sub_group_sizes, return atupleinstead of alistgh-2322 dpctl.SyclDevice.sub_group_independent_forward_progressproperty andDPCTLDevice_GetSubGroupIndependentForwardProgressC-API function were removed gh-2353- The signature of
DPCTLKernelBundle_CreateFromSpirvC-API function changed gh-2304 - The values of
DPCTLPartitionAffinityDomainTypeenumerators shifted, asDPCTL_PARTITION_AFFINITY_DOMAIN_UNKNOWNwas added as the zero value gh-2324 SyclProgramnames in thedpctlPython C-API anddpctl4pybind11.hppwere renamed toSyclKernelBundleones (e.g.PySyclProgramObjecttoPySyclKernelBundleObject,SyclProgram_MaketoSyclKernelBundle_Make) without keeping aliases, while the Python names remain available as deprecated aliases gh-2291- The Cython API of the
dpctl.programsubmodule was removed gh-2317 - Minimum required versions were raised: NumPy to 1.26 and Cython to 3.1.0 for building the project, and the DPC++ compiler to 2026.0.0 gh-2192, gh-2250, gh-2360
Added
- Added
dpctl.compiler.create_kernel_bundle_from_sycl_source,dpctl.compiler.is_sycl_source_compilation_available, anddpctl.SyclDevice.can_compilefor creatingdpctl.compiler.SyclKernelBundleobjects from SYCL source strings via the DPC++kernel_compilerextension, as well as corresponding C-API functions gh-2206 - Added support for free-threaded builds of CPython 3.14 gh-2250
- Added
dpctl.SyclQueue.copyanddpctl.SyclQueue.copy_asyncmethods gh-2273 - Added
DPCTLQueue_CopyDataandDPCTLQueue_CopyDataWithEventsC-API functions to supportdpctl.SyclQueue.copyanddpctl.SyclQueue.copy_asyncgh-2273 - Added support for SPIR-V specialization constants via
dpctl.compiler.SpecializationConstantand thespecializationskeyword ofdpctl.compiler.create_kernel_bundle_from_spirv, as well asdpctl.compiler.utilssubmodule for inspecting them gh-2304 - Added a number of
sycl::deviceinfo queries todpctl.SyclDevicegh-2324 - Added
dpctl.memory.MemoryIPCDeviceanddpctl.memory.IPCMemoryHandle, along withSyclIPCGetMemHandle,SyclIPCOpenMemHandle, andSyclIPCCloseMemHandlefunctions, for sharing USM-device allocations between processes, as well as supporting C-API functions and thedpctl.SyclDevice.has_aspect_ext_oneapi_ipc_memoryaspect query gh-2331 - Added
sycl::info::contextqueriessycl_platform,atomic_memory_order_capabilities,atomic_fence_order_capabilities,atomic_memory_scope_capabilities, andatomic_fence_scope_capabilitiestodpctl.SyclContextgh-2354 - Added
dpctl.SyclQueue.memsetanddpctl.SyclQueue.memset_asyncmethods gh-2361 - Added
DPCTLQueue_MemsetWithEventsC-API function to supportdpctl.SyclQueue.memset_asyncgh-2361 - Added
dpctl.SyclQueue.fillanddpctl.SyclQueue.fill_asyncmethods gh-2365 - Added
DPCTLQueue_Fill8/16/32/64/128WithEventsC-API functions to supportdpctl.SyclQueue.fill_asyncgh-2365 - Added support for Python 3.15 gh-2377
Changed
- Bumped the minimum required NumPy version to 1.26 gh-2192
- Bumped the minimum required Cython version to 3.1.0 gh-2250
- Renamed
dpctl.program.SyclProgramtodpctl.compiler.SyclKernelBundle,SyclProgramCompilationErrortoSyclKernelBundleCompilationError, andcreate_program_from_source/create_program_from_spirvtocreate_kernel_bundle_from_source/create_kernel_bundle_from_spirv, with corresponding renaming in thedpctlPython C-API (e.g.PySyclKernelBundleObject,SyclKernelBundle_Make) anddpctl4pybind11.hppgh-2291, gh-2317 - Rewrote USM Python examples into a single example gh-2292
dpctl.SyclPlatform.get_devicesnow queriesautomaticandcustomdevice types instead of returning no devices, as the work-around for the DPC++ bug is no longer needed gh-2303DPCTLKernelBundle_CreateFromSpirvC-API function now also takes an array ofDPCTLSpecConstspecialization constants gh-2304- Device and platform collection APIs, such as
dpctl.get_devicesanddpctl.SyclPlatform.get_devices, as well asdpctl.SyclDevice.sub_group_sizes, now return atupleinstead of alistgh-2322 - Added
DPCTL_PARTITION_AFFINITY_DOMAIN_UNKNOWNas the first enumerator (= 0) ofDPCTLPartitionAffinityDomainType, used when the SYCL runtime reports an unrecognized partition affinity domain; this shifts the values of the existing enumerators gh-2324 - Bumped the minimum required DPC++ compiler version to 2026.0.0 gh-2360
Deprecated
- Deprecated
dpctl.program.SyclProgramanddpctl.program.SyclProgramCompilationErrorin favor ofdpctl.compiler.SyclKernelBundleanddpctl.compiler.SyclKernelBundleCompilationError; the old names are kept as aliases that emit aDeprecationWarninggh-2291, gh-2317 - Deprecated
dpctl.program.create_program_from_sourceanddpctl.program.create_program_from_spirvin favor ofdpctl.compiler.create_kernel_bundle_from_sourceanddpctl.compiler.create_kernel_bundle_from_spirv; the old functions are kept as aliases that emit aDeprecationWarninggh-2291, gh-2317 - Deprecated
dpctl.programsubmodule in favor ofdpctl.compiler, which provides a better description of the purpose of the submodule in exposing DPC++ compilation-related functionality gh-2317 - Deprecated
DPCTL_ENABLE_L0_PROGRAM_CREATIONCMake option in favor ofDPCTL_ENABLE_L0_KERNEL_BUNDLE_CREATIONgh-2317
Removed
- Removed unused
platform_typeid_lookupfromdpctl4pybind11.hppgh-2286 - Removed Cython API for
dpctl.programsubmodule, as the submodule is now deprecated, with functionality migrated todpctl.compilergh-2317 - Removed
dpctl.SyclDevice.sub_group_independent_forward_progressproperty and the correspondingDPCTLDevice_GetSubGroupIndependentForwardProgressC-API function gh-2353
Fixed
- Fixed a typo in the error message and the docstring of
dpctl.SyclDevice.create_sub_devicesgh-2285 - Fixed formatting of
TypeErrormessages raised bydpctl.WorkGroupMemoryanddpctl.RawKernelArgconstructors, as well as of error messages raised bydpctl.SyclQueuemethods gh-2290 - Fixed rendering issues and warnings in the documentation build gh-2333
- Fixed search for the OpenCL loader in CMake gh-2356
- Fixed incorrect paths in
GetLevelZeroHeaders.cmakegh-2366 - Fixed an incorrect
dpctl.memory.MemoryUSMShared.memsetcall in the "Heterogeneous Systems and Programming Concepts" user guide gh-2368 - Fixed bugs in kernel creation and submission:
dpctl.compiler.SyclKernelBundle.get_sycl_kernelnow raisesValueErrorinstead of returning a kernel wrapping a null reference, which deferred the failure to the submission of the kernel;dpctl.SyclQueue.submitanddpctl.SyclQueue.submit_asyncnow raiseValueErrorwhen the number of arguments does not match the number of kernel arguments, instead of appearing to succeed; and submitting an invalid kernel now raisesdpctl.SyclKernelSubmitErrorgh-2382
Maintenance
- Added an example of using
dpctl.utils.SequentialOrderManagergh-2250 - Replaced uses of
str.formatwith f-strings gh-2282, and constructors of empty Python containers with literals gh-2289 - Added more
pre-commithooks, includingcodespell,shellcheck,gitleaks, andactionlintgh-2285 - Added documentation of older releases to the version drop-down, along with a workflow to backfill it gh-2312, gh-2380
- Removed copyright year ranges from file headers gh-2319
- Marked SYCL compiler include directories as system ones in
IntelSYCLConfig.cmakeanddpctltargets to suppress deprecation warnings coming from compiler headers on Windows gh-2334 - Added
opencl-headersas a Windows host requirement of the conda recipe gh-2349 - Updated pybind11 version used by
dpctland examples gh-2357 - Added a
conda-recipe-cfrecipe and a workflow for building and testingdpctlwith conda-forge packages only gh-2367, gh-2383 - Added an
asvbenchmark suite fordpctl, along with abenchmarkoptional dependency group inpyproject.tomlgh-2378 - Added a weekly
Coverity Scanworkflow that buildsdpctlwith the DPC++ compiler undercov-buildand submits the results to Coverity Scan gh-2379 - Miscellaneous changes to continuous integration/delivery (CI/CD) supporting scripts gh-2300, gh-2308, gh-2310, gh-2311, gh-2340, gh-2346, gh-2347, gh-2350, gh-2352, gh-2362, gh-2363, gh-2373, gh-2374, gh-2381