Skip to content

[SYCL] [L0] Fix for unreferenced parameters. #8984

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 1 commit into from
Apr 7, 2023
Merged

Conversation

rdeodhar
Copy link
Contributor

@rdeodhar rdeodhar commented Apr 7, 2023

Adds references to parameters to avoid compilation errors.

@rdeodhar rdeodhar requested a review from a team as a code owner April 7, 2023 00:17
@rdeodhar rdeodhar requested a review from cperkinsintel April 7, 2023 00:17
@@ -25,6 +25,7 @@ __SYCL_INLINE_VER_NAMESPACE(_V1) {
queue::queue(const context &SyclContext, const device_selector &DeviceSelector,
const async_handler &AsyncHandler, const property_list &PropList,
Discriminator Disc) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could do [[maybe_unused]] Discriminator Disc

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see this parameter in the spec - https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_queue_interface. So we added a parameter, which we ignore. Could you please clarify why do we ignore Disc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See comment in #7196.

@rdeodhar rdeodhar temporarily deployed to aws April 7, 2023 00:44 — with GitHub Actions Inactive
@rdeodhar rdeodhar temporarily deployed to aws April 7, 2023 01:14 — with GitHub Actions Inactive
@bader
Copy link
Contributor

bader commented Apr 7, 2023

[SYCL] [L0] Fix for unreferenced parameters.

I see that this patch changes SYCL queue constructor in the common part of the runtime library, so it's not clear why this change is tagged with [L0]. It's not specific to Level Zero, right?

@againull againull merged commit 3d6917f into intel:sycl Apr 7, 2023
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