Add ASV benchmark suite for dpctl - #2378
Open
vchamarthi wants to merge 3 commits into
Open
vchamarthi wants to merge 3 commits into
vchamarthi wants to merge 3 commits into
Conversation
vchamarthi
requested review from
antonwolfy,
ndgrigorian and
vlad-perevezentsev
as code owners
September 9, 2026 23:24
Collaborator
ndgrigorian
reviewed
Sep 14, 2026
Comment on lines
+31
to
+42
| # Device axis. Fully-qualified filter-selector strings, so a node exposing | ||
| # a device through more than one backend still resolves each benchmark to a | ||
| # fixed, unambiguous device. | ||
| _SELECTORS = ["opencl:cpu", "level_zero:gpu"] | ||
|
|
||
| # Allocation and transfer size sweep, in bytes: 4 KiB, 1 MiB, 16 MiB, 256 MiB. | ||
| _SIZES = [4 * 1024, 1024**2, 16 * 1024**2, 256 * 1024**2] | ||
|
|
||
| # USM kinds, mapped to their constructors. | ||
| _USM_TYPES = ["device", "host", "shared"] | ||
|
|
||
| # Fraction of device global memory a single benchmark allocation may claim. |
Collaborator
There was a problem hiding this comment.
I think all of these comments can be cleaned up to be less verbose/unnecessarily specific (i.e., we don't need the phrase 'USM kinds, mapped to their constructors', we can just say 'USM kinds')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
benchmarks/covering: object construction,get_device_cached_queue, USM alloc/free, device enumeration, kernel bundle compile (SPIR-V/OpenCL/SYCL source, cold vs. warm), data movement, kernel submit.Coverage (53 benchmarks, 7 files)
bench_construct.pyConstructSyclDevice/SyclContext/SyclQueueconstruction, from selector, from device, from(context, device),in_orderpropertyConstructPlatformSyclPlatform()constructionDevicePropertiesname/driver_version/max_compute_units/max_work_group_size/global_mem_size/has_aspect_fp64QueueAccessorssycl_device/sycl_contextaccessorsbench_queue_cache.pyQueueCacheget_device_cached_queue(context, device)key, device key, filter-string key, vs. an uncached baselinebench_usm.pyUSMAllocationMemoryUSM{Device,Host,Shared}alloc/free, aligned alloc (alignment=4096)USMFirstTouchUSMQueriesget_usm_type,__sycl_usm_array_interface__bench_enumerate.pyEnumerateget_devices/get_num_devices× device_type × backendSelectselect_default_device/select_cpu_device/select_gpu_device/has_cpu_devices/has_gpu_devices/select_device_with_aspectsbench_compile.pyBundleFromSPIRVcreate_kernel_bundle_from_spirv,get_sycl_kernel/has_sycl_kernelBundleFromOpenCLSourcecreate_kernel_bundle_from_sourcecold (unique kernel name) vs. warm (cache hit)BundleFromSYCLSourcecreate_kernel_bundle_from_sycl_sourcecold vs. warmSourceCompilationProbeSyclDevice.can_compile("sycl")bench_copy.pyHostDeviceCopySyclQueue.memcpy/memcpy_async,_Memory.copy_from_host/copy_to_hostDeviceDeviceCopySyclQueue.memcpy(d2d),_Memory.copy_from_deviceFillSyclQueue.memset/fill/memset_async,_Memory.memsetbench_submit.pySubmitsubmit,submit_async(single + batched)Synchronizesubmit_barrier,SyclQueue.wait,SyclEvent.wait