Skip to content

[Driver][SYCL] Do not claim RDC flag for option enabling#22237

Draft
mdtoguchi wants to merge 3 commits into
intel:syclfrom
mdtoguchi:no-rdc-test-fail
Draft

[Driver][SYCL] Do not claim RDC flag for option enabling#22237
mdtoguchi wants to merge 3 commits into
intel:syclfrom
mdtoguchi:no-rdc-test-fail

Conversation

@mdtoguchi

Copy link
Copy Markdown
Contributor

In the driver, any touch of an option with hasFlag, or hasArg, etc will claim that the option has been used. In the new offloading model, -fno-sycl-rdc is not yet implemented, so any actual use of the option is not representative of true usage.

Do not mark use of -fno-gpu-rdc (-fno-sycl-rdc is an alias) when being used to add an option to the -cc1 step. This allows for the driver ti properly recognize that -fno-sycl-rdc is not being used when the new model is enabled.

This change allows for any true -fno-sycl-rdc testing to emit a diagnostic when used with the new offload model. We can then error on this diagnostic to show failure with the new model for improved visibility and tracking of functionality.

In the driver, any touch of an option with hasFlag, or hasArg, etc will claim
that the option has been used.  In the new offloading model, -fno-sycl-rdc
is not yet implemented, so any actual use of the option is not representative
of true usage.

Do not mark use of -fno-gpu-rdc (-fno-sycl-rdc is an alias) when being used to
add an option to the `-cc1` step.  This allows for the driver ti properly
recognize that -fno-sycl-rdc is not being used when the new model is enabled.

This change allows for any true -fno-sycl-rdc testing to emit a diagnostic when
used with the new offload model.  We can then error on this diagnostic to
show failure with the new model for improved visibility and tracking of
functionality.
@mdtoguchi mdtoguchi added the new-offload-model Enables testing with NewOffloadModel. label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-offload-model Enables testing with NewOffloadModel.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant