Skip to content

Closes #629#632

Merged
oleksandr-pavlyk merged 1 commit intomasterfrom
equivalent_queues-629
Oct 21, 2021
Merged

Closes #629#632
oleksandr-pavlyk merged 1 commit intomasterfrom
equivalent_queues-629

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor

Implement dpctl.utils.get_execition_queue( queue_list ).

A test is added too.

In [1]: import dpctl, dpctl.utils

In [2]: q1 = dpctl.SyclQueue("gpu")

In [3]: q2 = dpctl.SyclQueue("gpu")

In [4]: q3 = dpctl.SyclQueue("cpu")

In [6]: dpctl.utils.get_execution_queue([q1]) is q1
Out[6]: True

In [7]: dpctl.utils.get_execution_queue([q1, q1, q1]) is q1
Out[7]: True

In [8]: dpctl.utils.get_execution_queue([q1, q2, q1]) is q1
Out[8]: True

In [9]: dpctl.utils.get_execution_queue([q1, q3, q2]) is None
Out[9]: True

@oleksandr-pavlyk oleksandr-pavlyk force-pushed the equivalent_queues-629 branch 2 times, most recently from 75df5c0 to 322bcc1 Compare October 20, 2021 22:14
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Oct 20, 2021

Coverage Status

Coverage increased (+0.5%) to 74.511% when pulling bf9e159 on equivalent_queues-629 into 7110541 on master.

Implement dpctl.utils.get_execition_queue( queue_list )
Copy link
Copy Markdown
Contributor

@reazulhoque reazulhoque left a comment

Choose a reason for hiding this comment

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

In which version of dpctl will this be included?

@oleksandr-pavlyk oleksandr-pavlyk merged commit e689ddc into master Oct 21, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the equivalent_queues-629 branch October 21, 2021 20:31
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