Skip to content

[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

Merged
merged 8 commits into from
Nov 13, 2024

Conversation

PietroGhg
Copy link
Contributor


std::vector<bool> res;
res.push_back(test<int>(q));
res.push_back(test<unsigned>(q));
Copy link
Contributor

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);
Copy link
Contributor

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.

@PietroGhg
Copy link
Contributor Author

@intel/llvm-gatekeepers this looks ready to merge, thank you

@sommerlukas sommerlukas merged commit 51d92a3 into intel:sycl Nov 13, 2024
13 checks passed
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.

4 participants