Skip to content

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

Merged
oleksandr-pavlyk merged 9 commits into
masterfrom
capi-add-hash-function
Jun 21, 2021
Merged

oleksandr-pavlyk merged 9 commits into
masterfrom
capi-add-hash-function

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
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

coveralls commented Jun 18, 2021 •

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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

diptorupd commented Jun 21, 2021 •

Copy link
Copy Markdown
Contributor

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

@oleksandr-pavlyk

Copy link
Copy Markdown
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

@diptorupd diptorupd left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread dpctl/_sycl_context.pyx Resolved
Comment thread dpctl/tests/test_sycl_context.py Resolved
@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