Skip to content

[SYCL] Fix potential misaligned allocation size #18375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2025

Conversation

steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented May 9, 2025

The use of std::aligned_alloc requires the size of the memory allocated to be a multiple of the alignment. This patch fixes the use of std::aligned_alloc in DynRTDeviceBinaryImage to adhere to these requirements. Note that _aligned_malloc from MSVC does not have this requirement.

The use of std::aligned_alloc requires the size of the memory allocated
to be a multiple of the allocation size. This patch fixes the use of
std::aligned_alloc in DynRTDeviceBinaryImage to adhere to these
requirements. Note that _aligned_malloc from MSVC does not have this
requirement.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner May 9, 2025 04:44
@steffenlarsen steffenlarsen requested a review from againull May 9, 2025 04:44
@againull againull merged commit 1e9c41d into intel:sycl May 9, 2025
20 checks passed
@steffenlarsen steffenlarsen deleted the steffen/fix_alligned_alloc branch May 12, 2025 08:58
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.

2 participants