Skip to content

[UR] Remove urKernelSet*() and urEnqueueKernelLaunch() API#21607

Open
ldorau wants to merge 6 commits intointel:syclfrom
ldorau:Remove_urKernelSet_functions
Open

[UR] Remove urKernelSet*() and urEnqueueKernelLaunch() API#21607
ldorau wants to merge 6 commits intointel:syclfrom
ldorau:Remove_urKernelSet_functions

Conversation

@ldorau
Copy link
Contributor

@ldorau ldorau commented Mar 24, 2026

Remove urKernelSet*() and urEnqueueKernelLaunch() API.
Replace urEnqueueKernelLaunch() with urEnqueueKernelLaunchWithArgsExp().

@ldorau ldorau force-pushed the Remove_urKernelSet_functions branch 10 times, most recently from c01a119 to 9b4840d Compare March 26, 2026 11:07
@ldorau ldorau changed the title [DRAFT] [UR] Remove urKernelSet*() and urEnqueueKernelLaunch() API [UR] Remove urKernelSet*() and urEnqueueKernelLaunch() API Mar 26, 2026
@ldorau ldorau marked this pull request as ready for review March 26, 2026 11:09
@ldorau ldorau requested review from a team as code owners March 26, 2026 11:09
@ldorau
Copy link
Contributor Author

ldorau commented Mar 26, 2026

Please review @intel/dpcpp-nativecpu-reviewers, @intel/llvm-reviewers-cuda, @intel/llvm-reviewers-runtime, @intel/sycl-graphs-reviewers, @intel/unified-runtime-reviewers, @intel/unified-runtime-reviewers-level-zero, and/or @intel/unified-runtime-reviewers-opencl @pbalcer @kswiecicki

ldorau added 4 commits March 26, 2026 12:03
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
…ated source

Commit output of `make generate`.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
…h() API

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Add comments about what the "saxpy" name stands for
in all places where the saxpy_* variables are declared.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
@ldorau
Copy link
Contributor Author

ldorau commented Mar 26, 2026

The 'Unified Runtime Conformance :: exp_usm_host_mem_register//exp_usm_host_mem_register-test/1/8' test sometimes fails because of #21633

Remove the public API wrapper functions urKernelSetArgValue(),
urKernelSetArgPointer(), urKernelSetArgMemObj(), urKernelSetArgLocal(),
and urKernelSetArgSampler() from the Level Zero v2 adapter kernel.cpp.

These functions were the public entry points for the removed
urKernelSetArg*() APIs. Since those APIs have been removed from the
spec, generated code, and DDI tables, these wrapper functions are
unreachable dead code. The internal helper methods they called
(hKernel->setArgValue(), hKernel->addPendingMemoryAllocation(), etc.)
are still used by the OLD fallback path in
appendKernelLaunchWithArgsExpOld() and are retained.

Also removes the static memAccessFromMemFlags() helper that was only
used by the removed urKernelSetArgMemObj() wrapper.
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.

1 participant