Skip to content
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

Merged
merged 6 commits into from
Nov 26, 2024

Conversation

sergey-semenov
Copy link
Contributor

No description provided.

Comment on lines 867 to 879
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);
Copy link
Contributor Author

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.

@sergey-semenov sergey-semenov changed the title [SYCL] Unify program build paths in program manager [SYCL][NFCI] Unify program build paths in program manager Nov 18, 2024
Copy link
Contributor

@aelovikov-intel aelovikov-intel left a 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!

Copy link
Contributor

@uditagarwal97 uditagarwal97 left a 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.

sycl/source/detail/program_manager/program_manager.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@uditagarwal97 uditagarwal97 left a comment

Choose a reason for hiding this comment

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

Thanks

@sergey-semenov sergey-semenov merged commit 906a9a3 into intel:sycl Nov 26, 2024
13 checks passed
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.

3 participants