Skip to content

[SYCL] small fix to alignment assertion #3671

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

Conversation

cperkinsintel
Copy link
Contributor

There are several reasons sycl::aligned_alloc_host might fail, for example if there is not enough memory. The present assertion seems to want to ensure that if the alignment is used that the memory is, ultimately, properly aligned. But it is too open and could instead assert if an alignment was specified and any failure occurred (even one not associated with alignment). This fix tightens that.

Signed-off-by: Chris Perkins [email protected]

Signed-off-by: Chris Perkins <[email protected]>
@cperkinsintel
Copy link
Contributor Author

ping to reviewers.

@cperkinsintel
Copy link
Contributor Author

review ping to codeowner: @smaslov-intel

@romanovvlad romanovvlad merged commit 3351916 into intel:sycl May 5, 2021
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.

3 participants