Skip to content

[UR][CTS] Copy binary data in urProgramCreateWithBinary #19308

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

RossBrunton
Copy link
Contributor

For the urProgramCreateWithBinaryTest we were not actually copying
the binary we wanted to use to copy.

For the `urProgramCreateWithBinaryTest` we were not actually copying
the binary we wanted to use to copy.
@RossBrunton RossBrunton requested a review from a team as a code owner July 4, 2025 15:15
@@ -20,9 +21,10 @@ struct urProgramCreateWithBinaryTest : uur::urProgramTest {
sizeof(binary_size), &binary_size,
nullptr));
binary.resize(binary_size);
uint8_t *binary_ptr = binary.data();
uint8_t *binary_ptr;
ASSERT_SUCCESS(urProgramGetInfo(program, UR_PROGRAM_INFO_BINARIES,
sizeof(binary_ptr), &binary_ptr, nullptr));
Copy link
Contributor

Choose a reason for hiding this comment

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

So we're supposed to be passing in the storage for urProgramGetInfo to copy the binaries into not just setting the pointer.

Seems to me like instead of sizeof(binary_ptr) this should be binary_size.

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