Skip to content

[SYCL][L0][PI] Add support for link copy engines #4221

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

Merged
merged 2 commits into from
Aug 5, 2021

Conversation

asudarsa
Copy link
Contributor

Signed-off-by: Arvind Sudarsanam [email protected]

@asudarsa asudarsa requested a review from smaslov-intel as a code owner July 30, 2021 02:31
// to which the command list (if any) will be submitted.
// If there is no command list, or if the command list is not a copy command
// list, the value is set to -1.
int CopyQueueIndex;
Copy link
Contributor

Choose a reason for hiding this comment

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

can't you use CopyQueueIndex == -1 check to replace the IsCopyCommandList member?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I think we can.

// Currently, a round robin strategy is used.
// It will return nullptr if no copy command queues are available for use.
ze_command_queue_handle_t
getZeCopyCommandQueue(int &CopyQueueIndex,
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to make first argument a pointer for consistency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed this in the next patch. Thanks

Copy link
Contributor

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

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

Please address comments

Copy link
Contributor

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

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

LGTM

@romanovvlad
Copy link
Contributor

Can we start writing component tests for L0 plugin? It could be applications that call PI API of plugins and checks that calls to L0 API are correct(similar to how we check that SYCL API is lowered correctly to PI API).

@asudarsa
Copy link
Contributor Author

asudarsa commented Aug 5, 2021

Hi @romanovvlad
I think I can open a separate Jira for this and track it from there. Is that acceptable?

Thanks

@againull againull merged commit ab5e7b0 into sycl Aug 5, 2021
@bader bader deleted the asudarsa/add_link_copy_engine_support branch August 5, 2021 19:43
@romanovvlad
Copy link
Contributor

Hi @romanovvlad
I think I can open a separate Jira for this and track it from there. Is that acceptable?

Thanks

Ok.

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.

4 participants