Skip to content

Added C-API hash function, used them in Python interface #491

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 9 commits into from
Jun 21, 2021

Conversation

oleksandr-pavlyk
Copy link
Contributor

Closes #483

Superseded #489 (and reuses some changes from there).

@oleksandr-pavlyk oleksandr-pavlyk changed the title Added C-API hash function, used than in Python interface Added C-API hash function, used them in Python interface Jun 18, 2021
@coveralls
Copy link
Collaborator

coveralls commented Jun 18, 2021

Coverage Status

Coverage decreased (-0.2%) to 60.802% when pulling 75ac845 on capi-add-hash-function into ca5697c on master.

@oleksandr-pavlyk
Copy link
Contributor Author

@diptorupd CI is failing in testing-wheels, and I am not entirely sure why. I was able to to conda build locally on Linux.

@diptorupd
Copy link
Contributor

diptorupd commented Jun 21, 2021

@oleksandr-pavlyk I suggest drop 41bd9ab from the PR. It unnecessarily will introduce an incomplete fix into our master.

@oleksandr-pavlyk
Copy link
Contributor Author

@oleksandr-pavlyk I suggest drop 41bd9ab from the PR. It unnecessarily will introduce an incomplete fix into our master.

I will do a gentle history rewriting once the CI winks an approval.

Diptorup Deb and others added 4 commits June 21, 2021 11:18
  - SyclContext, SyclDevice, SyclQueue classes previously where
    not hashable. The PR defines __hash__ function based on the
    C API DPCTL<Obj>_Hash function.
…re being installed into Python environment and should be used instead of those in the compiler installation
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the capi-add-hash-function branch from 8eb4915 to a005320 Compare June 21, 2021 17:53
diptorupd
diptorupd previously approved these changes Jun 21, 2021
Copy link
Contributor

@diptorupd diptorupd left a comment

Choose a reason for hiding this comment

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

Minor documentation fixes. Otherwise, LGTM.

@oleksandr-pavlyk oleksandr-pavlyk merged commit 227a126 into master Jun 21, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the capi-add-hash-function branch June 21, 2021 20:49
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.

All the Sycl* extension types should define a __hash__ function.
3 participants