-
Notifications
You must be signed in to change notification settings - Fork 798
[Driver][SYCL][NewOffloadModel] Hook up -fsycl-device-only behaviors #13672
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
Conversation
When using -fsycl-device-only with the new offloading model, update the behaviors to properly restrict the compilation flow to only produce the device binary. This more tightly integrates with the existing --offload-device-only option that is commonly used.
| StringRef ObjSuffix = isMSVCEnv ? ".obj" : ".o"; | ||
| StringRef NewObjSuffix = isMSVCEnv ? ".new.obj" : ".new.o"; | ||
| bool Ret = | ||
| (ObjFileName.starts_with("libsycl-") && |
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.
Is this going to deviate from the old-offloading-model flow where we do not seem to be calling Backend? If yes, is that agreeable? Thanks
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.
Yes, this is agreeable. The functionality is the same, we just introduce the additional phase to better match with the new model expectations.
|
Failures seem to be due to some infrastructure issue and unrelated to this change. |
asudarsa
left a comment
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. Thanks
|
Hi @mdtoguchi Can you please look at the cuda test fails? Thanks |
Cuda fails are unrelated to this PR and a fix has been submitted for review here: #13692 |
hdelan
left a comment
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.
Thanks for the ping. LGTM
|
@intel/llvm-gatekeepers, this looks ready for merge - thanks! |
When using -fsycl-device-only with the new offloading model, update the behaviors to properly restrict the compilation flow to only produce the device binary. This more tightly integrates with the existing --offload-device-only option that is commonly used.