-
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
[SYCL][NFCI] Unify program build paths in program manager #16113
base: sycl
Are you sure you want to change the base?
Conversation
device_image_plain DevImagePlain = | ||
getDeviceImageFromBinaryImage(BinImg, Context, Device); | ||
const std::shared_ptr<detail::device_image_impl> &DeviceImageImpl = | ||
detail::getSyclObjImpl(DevImagePlain); | ||
|
||
SerializedObj ImgSpecConsts = | ||
DeviceImageImpl->get_spec_const_blob_ref(); | ||
|
||
ur_program_handle_t NativePrg = | ||
createURProgram(*BinImg, Context, {Device}); | ||
ur_program_handle_t NativePrg = createURProgram(*BinImg, Context, Devs); | ||
|
||
if (BinImg->supportsSpecConstants()) | ||
setSpecializationConstants(DeviceImageImpl, NativePrg, Adapter); |
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.
Note: this spec constant part was intentionally removed since it did nothing except enable ITT annotations because the newly created device image contained no spec constant values.
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 assume it's mostly mechanical unification of two almost identical methods with further simplifications delayed till later PRs.
If some changes don't fall into that description, please tag specific lines for more thorough review, otherwise thanks for the refactoring!
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.
Looks good to me too. Just one minor 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
No description provided.