-
Notifications
You must be signed in to change notification settings - Fork 773
[DeviceSanitizer] Add e2e tests for detecting out-of-bounds errors on sycl::buffer #13504
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
Conversation
@@ -0,0 +1,34 @@ | |||
// REQUIRES: linux, cpu |
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 think merging all these tests into a single .cpp
file might be beneficial for CI load, but we can address it separately for the entire E2E suite at once.
item.get_global_id(0) * item.get_global_range(1) * | ||
item.get_global_range(2) + | ||
item.get_global_id(1) * item.get_global_range(2) + | ||
item.get_global_id(2); |
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.
can be simplified using nd_item::get_global_linear_id()
.
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.
Done
|
||
q.submit([&](sycl::handler &h) { | ||
auto A = buf.get_access<sycl::access::mode::write>(h); | ||
h.copy(&v[0], A); |
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.
Do we need the same for fill
/memset
?
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.
Thanks, updated. BTW, the case just wants to test that buffer copy/fill will not crash since in UR side we intercept all buffer related APIs with USM.
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.
LGTM
@intel/llvm-gatekeepers please merge |
UR Part: oneapi-src/unified-runtime#1533