Skip to content

Update for cython 3 #1302

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 4 commits into from
Jul 31, 2023
Merged

Update for cython 3 #1302

merged 4 commits into from
Jul 31, 2023

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Jul 24, 2023

This PR closes gh-1277, reverts 03a46e1 to enable Cython 3.0, modifies Cython files per Cython guidance, and removes deprecated in 2023.2 sycl::aspect::usm_restricted_shared_allocations and dpctl.SyclDevice.has_aspect_usm_restricted_shared_allocations property.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

This PR removed deprecated in DPC++ aspect usm_restricted_shared_allocations.

SyclDevice.has_aspect_usm_restricted_shared_allocations has been removed too.
Changes per

 https://cython.readthedocs.io/en/latest/src/userguide/external_C_code.html

Capsule deleter functions are marked noexcept

except/noexcept must be specified before gil/no gil.

cpdef functions should not have except qualifiers.
Added

```
```

to quieten mightly flood of warnings.
@github-actions
Copy link

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 83.259% (+0.02%) from 83.236% when pulling 5d95918 on update-for-cython-3 into 616c21e on master.

@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.6dev0=py310h7bf5fec_31 ran successfully.
Passed: 478
Failed: 522
Skipped: 119

Copy link
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Checked with dpnp build, it works fine, no dpctl relating warning. Thank you @oleksandr-pavlyk !

@oleksandr-pavlyk oleksandr-pavlyk marked this pull request as ready for review July 28, 2023 22:02
@oleksandr-pavlyk
Copy link
Contributor Author

I should also add that after this PR the source remains buildable with Cython 0.29.36

Copy link
Collaborator

@ndgrigorian ndgrigorian left a comment

Choose a reason for hiding this comment

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

Looks good to me!

With this we can look ahead to enabling Python arithmetic operators for usm_ndarrays.

@oleksandr-pavlyk oleksandr-pavlyk merged commit fedc71b into master Jul 31, 2023
@oleksandr-pavlyk oleksandr-pavlyk deleted the update-for-cython-3 branch July 31, 2023 21:32
@github-actions
Copy link

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.6dev0=py310h7bf5fec_65 ran successfully.
Passed: 594
Failed: 406
Skipped: 119

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.

Address compilation warnings from Open Source Intel/LLVM sycl bundle
4 participants