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

[EXP][CMDBUF] L0 Immediate command-list support #3

Closed
wants to merge 1 commit into from

Conversation

mfrancepillois
Copy link

Adds support for L0 immediate command-list.
The command-list containing the graph operations is still batch command-list but graphs can now be submitted even though immediate queue is requested by users.
Prefix and Suffix additional command list types follow Queue type.

Copy link
Owner

@Bensuo Bensuo left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 753 to 755
ZE2UR_CALL(
zeCommandQueueExecuteCommandLists,
(ZeCommandQueue, 1, &ZeCommandList, CommandListPtr->second.ZeFence));
Copy link
Owner

Choose a reason for hiding this comment

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

I think if we're now submitting the command list ourselves rather than through the queue we could probably not store it it in this iterator type to clean things up a little bit, since that was only necessary for that.

Copy link
Author

Choose a reason for hiding this comment

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

The iterator still help us keep track of fences to release them in the command-buffer destructor. But it is true that we can also use a simpler container for that.

Copy link
Author

Choose a reason for hiding this comment

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

I changed the way we track fences by using a vector instead of the CommandList map.

Copy link
Collaborator

@EwanC EwanC 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 👍

@EwanC EwanC requested a review from julianmi December 21, 2023 11:00
Copy link
Collaborator

@reble reble left a comment

Choose a reason for hiding this comment

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

LGTM!

source/adapters/level_zero/command_buffer.hpp Outdated Show resolved Hide resolved
Adds support for L0 immediate command-list.
The command-list containing the graph operations is still batch cmd-list but graphs can now be submitted even though immediate queue is requested by users.
Prefix and Suffix additional command list types follow the Queue type.
@mfrancepillois
Copy link
Author

Upstream UR PR : oneapi-src#1218

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.

5 participants