-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL][NATIVECPU] Implement events on Native CPU #15926
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
|
||
std::vector<bool> res; | ||
res.push_back(test<int>(q)); | ||
res.push_back(test<unsigned>(q)); |
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.
Performance. Using a vector here likely causes allocations and there's the overhead of iterating over the vector.
It's probably faster to instead check the test values and return straight away if there's an error.
const T test{42}; | ||
|
||
myQueue.submit([&](handler &cgh) { | ||
auto A = a.template get_access<access::mode::write>(cgh); |
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.
It might be worth replicating this test also for access::mode::read_write
to see if timing/events handling is correct for different access modes.
@intel/llvm-gatekeepers this looks ready to merge, thank you |
Testing PR for oneapi-src/unified-runtime#2254