-
Notifications
You must be signed in to change notification settings - Fork 740
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
[Driver][SYCL] Add support for -fsycl-force-target #6653
Conversation
Introduce -fsycl-force-target=arg support. This is used along with -fsycl to allow the user to override the target used to unbundle device objects from fat objects and archives. For example, object.o is built from -fsycl-targets=spir64. The user wants to build with -fsycl-targets=spir64_gen and object.o. Use of -fsycl-force-target=spir64 allows for this to be accomplished. Additional notes: - Only valid when used with a single triple from -fsycl-targets - Applies to all unbundled archives and objects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect the Driver team to review this more thoroughly, but the FE changes look okay to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FE changes LGTM
@intel/dpcpp-doc-reviewers, can you take a look? |
037d753
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Reviewing for @intel/dpcpp-doc-reviewers .
Introduce -fsycl-force-target=arg support. This is used along with -fsycl
to allow the user to override the target used to unbundle device objects
from fat objects and archives.
For example, object.o is built from -fsycl-targets=spir64. The user wants
to build with -fsycl-targets=spir64_gen and object.o. Use of
-fsycl-force-target=spir64 allows for this to be accomplished.
Additional notes: