Skip to content

[SYCL] Update E2E to use access_mode [1/3] - #22842

Merged
againull merged 2 commits into
intel:syclfrom
KornevNikita:upd-sycl-e2e-access-mode-1
Jul 31, 2026
Merged

[SYCL] Update E2E to use access_mode [1/3]#22842
againull merged 2 commits into
intel:syclfrom
KornevNikita:upd-sycl-e2e-access-mode-1

Conversation

@KornevNikita

Copy link
Copy Markdown
Contributor

access::mode is deprecated in favor of access_mode.
PR to add deprecations #22803

access::mode is deprecated in favor of access_mode.
PR to add deprecations intel#22803
@KornevNikita KornevNikita changed the title [SYCL] Update E2E to use access_mode [SYCL] Update E2E to use access_mode [1/3] Jul 31, 2026
@KornevNikita
KornevNikita requested a review from Copilot July 31, 2026 14:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates SYCL end-to-end tests to use sycl::access_mode (and access_mode::* enumerators) instead of the deprecated sycl::access::mode / access::mode spelling, aligning the test suite with SYCL 2020 naming.

Changes:

  • Replace buffer::get_access<access::mode::...> and accessor<..., access::mode::...> with ...<access_mode::...> / sycl::access_mode::... across E2E tests.
  • Update constexpr variables and type aliases that referenced access::mode to use access_mode.
  • Minor formatting adjustments where long template parameter lists were touched.

Reviewed changes

Copilot reviewed 106 out of 106 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sycl/test-e2e/XPTI/buffer/use_host_ptr.cpp Switches buffer accessor mode to sycl::access_mode.
sycl/test-e2e/XPTI/buffer/multiple_queues.cpp Switches buffer accessor mode to sycl::access_mode in multi-queue XPTI test.
sycl/test-e2e/XPTI/buffer/host_array.cpp Switches buffer accessor mode to sycl::access_mode.
sycl/test-e2e/WorkGroupStatic/work_group_static_memory_class_scope.cpp Updates get_access mode to access_mode.
sycl/test-e2e/WorkGroupScratchMemory/dynamic_alloc_ptr_alias.cpp Updates get_access mode to access_mode.
sycl/test-e2e/USM/memset.cpp Updates buffer accessor mode to access_mode.
sycl/test-e2e/USM/free_during_kernel_execution.cpp Updates buffer accessor mode to sycl::access_mode.
sycl/test-e2e/Tracing/buffer_printers.cpp Updates accessor modes used by tracing test to access_mode.
sycl/test-e2e/SubGroup/vote.cpp Updates subgroup test buffer accessor modes to access_mode.
sycl/test-e2e/SubGroup/info.cpp Updates subgroup info test accessor modes to access_mode.
sycl/test-e2e/SubGroup/broadcast.hpp Updates subgroup broadcast test accessor modes to access_mode.
sycl/test-e2e/SpecConstants/2020/non_native/spec_const_alignment_test.cpp Updates spec-constant test access modes to sycl::access_mode.
sycl/test-e2e/SpecConstants/2020/host_apis.cpp Updates buffer accessor modes to sycl::access_mode.
sycl/test-e2e/Scheduler/MultipleDevices.cpp Updates scheduler test accessor modes to access_mode.
sycl/test-e2e/Scheduler/HostAccDestruction.cpp Updates scheduler test accessor mode to sycl::access_mode.
sycl/test-e2e/Scheduler/CommandCleanupThreadSafety.cpp Updates scheduler test accessor mode to access_mode.
sycl/test-e2e/Sampler/unnormalized-none-linear-float.cpp Updates image/buffer accessor modes to access_mode.
sycl/test-e2e/Sampler/unnormalized-clamp-nearest.cpp Updates image/buffer accessor modes to access_mode.
sycl/test-e2e/Sampler/normalized-repeat-linear-float.cpp Updates image/buffer accessor modes to access_mode.
sycl/test-e2e/Sampler/normalized-mirror-nearest.cpp Updates image/buffer accessor modes to access_mode.
sycl/test-e2e/Sampler/normalized-clampedge-linear-float.cpp Updates image/buffer accessor modes to access_mode.
sycl/test-e2e/Sampler/basic-rw.cpp Updates image/buffer accessor modes to access_mode.
sycl/test-e2e/Regression/set-arg-local-accessor.cpp Updates buffer accessor mode to access_mode.
sycl/test-e2e/Regression/queue_submit.cpp Updates discard-write accessor mode spelling to sycl::access_mode.
sycl/test-e2e/Regression/multithread_write_accessor.cpp Updates buffer accessor mode to sycl::access_mode.
sycl/test-e2e/Regression/mad_sat.cpp Updates buffer accessor mode to sycl::access_mode.
sycl/test-e2e/Regression/kernel_name_class.cpp Updates buffer accessor modes to sycl::access_mode throughout kernel-name coverage.
sycl/test-e2e/Regression/implicit_offset_debug_info.cpp Updates accessor mode to access_mode.
sycl/test-e2e/Regression/image_access.cpp Updates accessor template mode parameter to sycl::access_mode.
sycl/test-e2e/Regression/fsycl-host-compiler-win.cpp Updates accessor mode to access_mode.
sycl/test-e2e/Regression/complex_global_object.cpp Updates accessor mode to sycl::access_mode.
sycl/test-e2e/Regression/atomic_load.cpp Updates atomic accessor mode spelling to access_mode.
sycl/test-e2e/Reduction/reduction_usm_dw.cpp Updates accessor modes (read/discard_write) to access_mode.
sycl/test-e2e/Reduction/reduction_range_1d_rw.cpp Updates constexpr access mode type/value to access_mode.
sycl/test-e2e/Reduction/reduction_nd_ext_type.hpp Updates constexpr access mode type/value to access_mode.
sycl/test-e2e/Reduction/reduction_ctor.cpp Updates accessor template mode parameters to access_mode.
sycl/test-e2e/KernelParams/union_kernel_param.cpp Updates accessor mode to sycl::access_mode.
sycl/test-e2e/KernelParams/array-kernel-param-run.cpp Updates accessor modes and accessor type alias to access_mode.
sycl/test-e2e/KernelCompiler/opencl_capabilities.cpp Updates buffer accessor mode to sycl::access_mode.
sycl/test-e2e/KernelAndProgram/cache_env_vars.hpp Updates accessor mode to sycl::access_mode.
sycl/test-e2e/InlineAsm/asm_switch.cpp Updates output buffer accessor mode to sycl::access_mode.
sycl/test-e2e/InlineAsm/asm_multiple_instructions.cpp Updates input/output buffer accessor modes to sycl::access_mode.
sycl/test-e2e/InlineAsm/asm_imm_arg.cpp Updates input/output buffer accessor modes to sycl::access_mode.
sycl/test-e2e/InlineAsm/asm_float_imm_arg.cpp Updates input/output buffer accessor modes to sycl::access_mode.
sycl/test-e2e/InlineAsm/asm_arbitrary_ops_order.cpp Updates input/output buffer accessor modes to sycl::access_mode.
sycl/test-e2e/InlineAsm/asm_16_no_opts.cpp Updates output buffer accessor mode to sycl::access_mode.
sycl/test-e2e/InlineAsm/asm_16_empty.cpp Updates output buffer accessor mode to sycl::access_mode.
sycl/test-e2e/HostInteropTask/interop-task-cuda.cpp Updates host-task CUDA interop accessors to sycl::access_mode.
sycl/test-e2e/HostInteropTask/host-task-dependency4.cpp Updates host-task accessor mode to sycl::access_mode.
sycl/test-e2e/HierPar/Inputs/hier_par_wgscope_impl.hpp Updates hierarchical parallelism accessor modes to access_mode.
sycl/test-e2e/GroupInterface/leader_of.cpp Updates group interface test accessor mode to access_mode.
sycl/test-e2e/GroupAlgorithm/back_to_back_collectives.cpp Updates group algorithm test accessor modes to access_mode.
sycl/test-e2e/FreeFunctionKernels/template_specialization.cpp Updates accessor mode to sycl::access_mode.
sycl/test-e2e/Experimental/reusable_events/wait_multiple_events.cpp Updates accessor modes to sycl::access_mode.
sycl/test-e2e/Experimental/reusable_events/kernel_timing.cpp Updates accessor mode to sycl::access_mode.
sycl/test-e2e/Experimental/reusable_events/event_reassociation_dependency.cpp Updates accessor modes to sycl::access_mode.
sycl/test-e2e/Experimental/launch_queries/max_work_item_sizes.cpp Updates accessor type alias and get_access mode to sycl::access_mode.
sycl/test-e2e/Experimental/launch_queries/max_sub_group_size.cpp Updates accessor type alias and get_access mode to sycl::access_mode.
sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp Updates native-command CUDA interop accessors to sycl::access_mode.
sycl/test-e2e/DeviceLib/string_test.cpp Updates device-lib test accessors to sycl::access_mode.
sycl/test-e2e/DeviceLib/rand_test.cpp Updates device-lib test accessor mode to sycl::access_mode.
sycl/test-e2e/DeviceLib/math_test.cpp Updates constexpr access mode variables to sycl::access_mode.
sycl/test-e2e/DeviceLib/math_fp64_test.cpp Updates constexpr access mode variables to sycl::access_mode.
sycl/test-e2e/DeviceLib/imf/fp32_test.cpp Updates constexpr access mode variables to sycl::access_mode.
sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp Updates constexpr access mode variables to sycl::access_mode.
sycl/test-e2e/DeviceLib/built-ins/vector_relational.cpp Updates built-ins test accessor modes to s::access_mode.
sycl/test-e2e/DeviceLib/built-ins/vector_geometric.cpp Updates built-ins test accessor modes to s::access_mode.
sycl/test-e2e/DeviceLib/built-ins/scalar_math_2.cpp Updates built-ins test accessor modes to s::access_mode.
sycl/test-e2e/DeviceLib/built-ins/scalar_geometric.cpp Updates built-ins test accessor modes to s::access_mode.
sycl/test-e2e/DeviceLib/built-ins/fast-math-flag.cpp Updates accessor template mode parameters to access_mode.
sycl/test-e2e/DeviceLib/bfloat16_conversion_dlopen_test.hpp Updates constexpr access mode variables to access_mode.
sycl/test-e2e/DeviceGlobal/device_global_subscript.hpp Updates device_global test accessor mode to access_mode.
sycl/test-e2e/DeviceGlobal/device_global_device_only.hpp Updates device_global test accessor mode to access_mode.
sycl/test-e2e/DeprecatedFeatures/subbuffer_interop.cpp Updates deprecated-features test accessor modes to access_mode.
sycl/test-e2e/Config/kernel_from_file.cpp Updates accessor mode to access_mode.
sycl/test-e2e/Basic/vector/operators.cpp Updates basic vector test accessor modes to s::access_mode.
sycl/test-e2e/Basic/unused_pointer.cpp Updates basic test accessor mode to sycl::access_mode.
sycl/test-e2e/Basic/subdevice_pi.cpp Updates basic test accessor mode to access_mode.
sycl/test-e2e/Basic/queue/queue_shortcut_functions.cpp Updates accessor template mode parameters to sycl::access_mode.
sycl/test-e2e/Basic/offset-accessor-get_pointer.cpp Updates constexpr mode value to access_mode.
sycl/test-e2e/Basic/multisource.cpp Updates accessor modes to access_mode.
sycl/test-e2e/Basic/multi_ptr.hpp Updates accessor template mode parameters to access_mode.
sycl/test-e2e/Basic/kernel_info.cpp Updates accessor mode to access_mode.
sycl/test-e2e/Basic/interop/make_kernel_subdevice_l0.cpp Updates accessor mode to access_mode.
sycl/test-e2e/Basic/image/image.cpp Updates constexpr modes and image accessor mode to sycl::access_mode.
sycl/test-e2e/Basic/image/image_trace.cpp Updates constexpr modes to sycl::access_mode.
sycl/test-e2e/Basic/image/image_max_size.cpp Updates image accessor modes to access_mode.
sycl/test-e2e/Basic/image/image_accessor_readwrite.cpp Updates image/buffer accessor modes to s::access_mode.
sycl/test-e2e/Basic/handler/handler_generic_integral_lambda.cpp Updates accessor type + get_access mode to sycl::access_mode.
sycl/test-e2e/Basic/half_builtins.cpp Updates accessor modes to access_mode.
sycl/test-e2e/Basic/get_backend.cpp Updates accessor mode to access_mode.
sycl/test-e2e/Basic/fill_accessor_ur.cpp Updates accessor modes and accessor type to sycl::access_mode.
sycl/test-e2e/Basic/event_profiling_info.cpp Updates accessor template mode parameters to access_mode.
sycl/test-e2e/Basic/compare_exchange_strong.cpp Updates atomic/write accessor modes to access_mode.
sycl/test-e2e/Basic/buffer/subbuffer.cpp Updates accessor modes to sycl::access_mode and removes an obsolete using line.
sycl/test-e2e/Basic/buffer/buffer.cpp Updates accessor modes (read/write/read_write) to access_mode.
sycl/test-e2e/Basic/buffer/buffer_release.cpp Updates accessor mode to sycl::access_mode.
sycl/test-e2e/Basic/accessor/accessor.cpp Updates many accessor template parameters to sycl::access_mode across the accessor test.
sycl/test-e2e/AtomicRef/sub.h Updates AtomicRef test accessor modes to access_mode.
sycl/test-e2e/AtomicRef/min.h Updates AtomicRef test accessor modes to access_mode.
sycl/test-e2e/AtomicRef/exchange.h Updates AtomicRef test accessor modes to access_mode.
sycl/test-e2e/AtomicRef/atomic_memory_order_acq_rel.cpp Updates AtomicRef test accessor modes to access_mode.
sycl/test-e2e/AtomicRef/add.h Updates AtomicRef test accessor modes to access_mode.
sycl/test-e2e/Assert/assert_in_multiple_tus.hpp Updates accessor mode to sycl::access_mode.
sycl/test-e2e/AddressCast/static_address_cast.cpp Updates accessor modes to sycl::access_mode.
sycl/test-e2e/AddressCast/dynamic_address_cast.cpp Updates accessor modes to sycl::access_mode.

@KornevNikita
KornevNikita marked this pull request as ready for review July 31, 2026 14:33
@KornevNikita
KornevNikita requested review from a team as code owners July 31, 2026 14:33
@KornevNikita
KornevNikita requested a review from againull July 31, 2026 14:33

@sarnex sarnex left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm two nits

Comment thread sycl/test-e2e/Assert/assert_in_multiple_tus.hpp Outdated
Comment thread sycl/test-e2e/HostInteropTask/interop-task-cuda.cpp Outdated
@sarnex

sarnex commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

lgtm thx

@againull
againull merged commit fd8a844 into intel:sycl Jul 31, 2026
29 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants