-
Notifications
You must be signed in to change notification settings - Fork 83
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
Do not use C99 VLA in C++ code #1030
Conversation
This is a fix for KhronosGroup#848
{ | ||
sycl::buffer<bool, 1> res_buf(result, sycl::range(code_count)); | ||
sycl::buffer<char, 1> res_buf(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bader Oops! Good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bader Oops! Good catch.
It was CI, not me. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was puzzled by AdaptiveCpp passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AdaptiveCpp doesn't not compile this test case: https://github.com/keryell/SYCL-CTS/blob/9c269373f6ce38efd35f7d2db6e2675c1107f83c/tests/sub_group/sub_group_semantics.cpp#L118-L120
Fixes #848.