You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[UR] Check for memory alignment before calling clEnqueueMemFillINTEL_fn in OpenCL (#18423)
Fixesoneapi-src/unified-runtime#2440
[clEnqueueMemFillINTEL returns CL_INVALID_VALUE if dst_ptr is NULL, or
if dst_ptr is not aligned to pattern_size bytes.
](https://registry.khronos.org/OpenCL/extensions/intel/cl_intel_unified_shared_memory.html)
This PR adds a memory alignment check before calling
`clEnqueueMemFillINTEL` to ensure we can safely call it, otherwise take
the host side copy path.
Re-enables the `USM/fill_any_size.cpp` and also moves
`checkUSMImplAlignment` from Hip into a common header so it can be used
in both Hip and OpenCL.
0 commit comments