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
[SYCL] Fix handling of unsupported alignment by aligned_alloc_xxx<T> (#12569)
Implementation is supposed to return `nullptr` when requested alignment is not supported. Since our runtime performs all allocations through Unified Runtime that means for us that any alignment which is not a power of two is unsupported.
Note that the resulting alignment may not be the same as requested one (per the SYCL 2020 specification) and therefore we can't just rely on return value of underlying non-templated version of the alloc function and have to perform the check explicitly.
There is an issue with some backends not properly returning error on an unsupported alignment, it wis reported in #11642
---------
Signed-off-by: Hu, Peisen <[email protected]>
0 commit comments