Skip to content

Add aspect selector#558

Merged
oleksandr-pavlyk merged 6 commits intoIntelPython:masterfrom
vlad-perevezentsev:aspect_selector
Sep 1, 2021
Merged

Add aspect selector#558
oleksandr-pavlyk merged 6 commits intoIntelPython:masterfrom
vlad-perevezentsev:aspect_selector

Conversation

@vlad-perevezentsev
Copy link
Copy Markdown
Collaborator

This PR adds the device selection function by aspects and tests to it.

Docstrings will be added in the next commit.

Comment thread dpctl/_device_selection.py Outdated
vlad-perevezentsev and others added 2 commits August 31, 2021 08:16
1. Added docstring
2. Rename arguments from "aspect_list", "deny_list" to
   "required_aspects", "excluded_aspects"
3. Permit aspects to be gives as Python sequences
4. If unsupported aspect is specified, AttributeError is raised
   as opposed to ValueError
5. ValueError is raised of the requested device is not available.

6. Tests were modified to account for possibility that function
   invocation may raise ValueError
7. Test was added to test that ValueError error is raised when
   impossible configuration is requested, like when
   required_aspects and excluded_aspects sets intersect.
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Sep 1, 2021

Coverage Status

Coverage increased (+0.3%) to 66.963% when pulling 5c57730 on vlad-perevezentsev:aspect_selector into 33031a2 on IntelPython:master.

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor

I think this is ready to go in.

@oleksandr-pavlyk oleksandr-pavlyk merged commit c88ed14 into IntelPython:master Sep 1, 2021
@vlad-perevezentsev vlad-perevezentsev deleted the aspect_selector branch June 20, 2023 10:53
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