Skip to content

[SYCL][E2E][NFC] Correct in_order_usm_implicit.cpp allocation size#22457

Open
sergey-semenov wants to merge 1 commit into
intel:syclfrom
sergey-semenov:testedit
Open

[SYCL][E2E][NFC] Correct in_order_usm_implicit.cpp allocation size#22457
sergey-semenov wants to merge 1 commit into
intel:syclfrom
sergey-semenov:testedit

Conversation

@sergey-semenov

Copy link
Copy Markdown
Contributor

No description provided.

@sergey-semenov sergey-semenov requested a review from a team as a code owner June 26, 2026 21:44
@@ -33,12 +33,12 @@
const int dataSize = 32;
const size_t numBytes = static_cast<size_t>(dataSize) * sizeof(int);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const size_t numBytes = static_cast<size_t>(dataSize) * sizeof(int);

dataB[i] = 0;
}

Queue.mem_advise(dataA, numBytes, mem_advice);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Queue.mem_advise(dataA, dataSize * sizeof(int), mem_advice);

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.

2 participants