Skip to content

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jul 24, 2023

The PR resolves compilation error which mainly looks relating to incorrect code generation by cython 3.0.0 in case of any import with asterisk. By the way, all asterisk imports were removed from dparray.pyx, since it makes the code more clear.

Also the PR suppresses a compilation warning caused by the deprecated pre-NumPy-1.7 C-API. The suppression is implemented by defining -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION through cmake following the cython recommendation.

Remaining warnings are caused by either dpctl or cython issues.

The PR removes temporary pining to cython "<3" in the receipt and from actions, since all issues are resolved.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to 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 filing the PR as a draft?

Copy link
Collaborator

@vlad-perevezentsev vlad-perevezentsev left a comment

Choose a reason for hiding this comment

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

LGTM
thanks @antonwolfy

@antonwolfy antonwolfy merged commit 834f9c4 into master Jul 24, 2023
@antonwolfy antonwolfy deleted the enable_cython_v3 branch July 24, 2023 20:12
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.

2 participants