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

[UR] urDeviceSelectBinary spec changes #327

Merged
merged 2 commits into from
Mar 17, 2023

Conversation

veselypeta
Copy link
Contributor

@veselypeta veselypeta commented Mar 7, 2023

PI uses a pi_device_binary type which includes a bunch of additional metadata that is used by the program manager in SYCL. However the only place where this binary struct is used is with the urDeviceSelectBinary entry point. Every implemented plugin selects the correct device binary by comparing the correct DeviceTargetSpec within the plugin. The extra complexity inherited in PI from the program manager is unnecessary for UR and has been removed. I have left the option of extending this struct with the ur_base_desc_t class.

Closes #252
Closes #118
Closes #171
Closes #114

@veselypeta veselypeta changed the title Petr/252/binary structs [UR] urDeviceSelectBinary matches PI Mar 7, 2023
@veselypeta veselypeta marked this pull request as draft March 7, 2023 17:02
@veselypeta veselypeta force-pushed the petr/252/binary-structs branch 4 times, most recently from 7544a93 to a233e69 Compare March 10, 2023 15:50
@veselypeta veselypeta force-pushed the petr/252/binary-structs branch 3 times, most recently from ddf490e to 1257117 Compare March 14, 2023 15:30
@veselypeta veselypeta marked this pull request as ready for review March 15, 2023 09:06
@veselypeta veselypeta changed the title [UR] urDeviceSelectBinary matches PI [UR] urDeviceSelectBinary spec changes Mar 15, 2023
@veselypeta veselypeta requested a review from kbenzie March 15, 2023 09:15
@veselypeta veselypeta force-pushed the petr/252/binary-structs branch from 1257117 to a0c0e93 Compare March 15, 2023 11:54
The module object has been removed, and the program object now more closely
mirrors its OpenCL and PI equivalents.
Copy link
Contributor

@kbenzie kbenzie left a comment

Choose a reason for hiding this comment

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

LGTM

@veselypeta veselypeta force-pushed the petr/252/binary-structs branch from 5867e35 to dd24bfb Compare March 17, 2023 11:23
@veselypeta veselypeta force-pushed the petr/252/binary-structs branch from dd24bfb to 8077602 Compare March 17, 2023 11:41
@veselypeta veselypeta merged commit c54b782 into oneapi-src:main Mar 17, 2023
@veselypeta veselypeta deleted the petr/252/binary-structs branch March 17, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants