Skip to content
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

Fixed bug in queue test: sizeof(int) was used even if T!=int. #853

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/queue/queue_shortcuts_usm.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ void test_unified_shared_memory(sycl::queue q, unsigned int element_count) {
T* ptr = sycl::malloc_device<T>(element_count, q);
constexpr int advice = 0;
sycl::event advise_no_events =
q.mem_advise(ptr, element_count * sizeof(int), advice);
q.mem_advise(ptr, element_count * sizeof(T), advice);
sycl::event advise_single_event = q.mem_advise(
ptr, element_count * sizeof(int), advice, advise_no_events);
ptr, element_count * sizeof(T), advice, advise_no_events);
sycl::event advise_multiple_events =
q.mem_advise(ptr, element_count * sizeof(int), advice,
q.mem_advise(ptr, element_count * sizeof(T), advice,
{advise_no_events, advise_single_event});
advise_multiple_events.wait();
advise_no_events.wait();
Expand Down
Loading