Skip to content

[SYCL] Fix unreferenced parameters #10482

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 3 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion sycl/plugins/esimd_emulator/pi_esimd_emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2045,11 +2045,13 @@ pi_result piextUSMGetMemAllocInfo(pi_context, const void *, pi_mem_alloc_info,
DIE_NO_IMPLEMENTATION;
}

pi_result piextUSMImport(const void *ptr, size_t size, pi_context context) {
pi_result piextUSMImport(const void *, size_t, pi_context) {
return PI_SUCCESS;
}

pi_result piextUSMRelease(const void *ptr, pi_context context) {
(void)ptr;
(void)context;
return PI_SUCCESS;
}

Expand Down
5 changes: 5 additions & 0 deletions sycl/plugins/opencl/pi_opencl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2042,10 +2042,15 @@ pi_result piextUSMGetMemAllocInfo(pi_context context, const void *ptr,
}

pi_result piextUSMImport(const void *ptr, size_t size, pi_context context) {
std::ignore = ptr;
std::ignore = size;
std::ignore = context;
return PI_SUCCESS;
}

pi_result piextUSMRelease(const void *ptr, pi_context context) {
std::ignore = ptr;
std::ignore = context;
return PI_SUCCESS;
}

Expand Down