Skip to content
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

Tracking NumPy usage in various modules. #9193

Open
27 tasks
kc611 opened this issue Sep 12, 2023 · 0 comments
Open
27 tasks

Tracking NumPy usage in various modules. #9193

kc611 opened this issue Sep 12, 2023 · 0 comments
Labels

Comments

@kc611
Copy link
Collaborator

kc611 commented Sep 12, 2023

Feature request

As titled, this PR tracks usage of NumPy across Numba. The end goal is to hopefully refactor NumPy usage in a way such that it is restricted to either numba.np and/or numba.cuda module in order to simplify dependencies.

Following are places other than numba.np where NumPy is being used:

  • numba.core
    • boxing.py (Will require type separation between NumPy and Python scalar types.)
    • errors.py
    • inline_closurecall.py
    • ir_utils.py
    • utils.py
    • datamodel.models.py
    • types module (Will require type separation between NumPy and Python scalar types.)
    • typing module (Will require type separation between NumPy and Python scalar types.)
  • numba.cpython
    • builtins.py
    • charseq.py
    • hashing.py
    • mathimpl.py
    • numbers.py
    • randomimpl.py
    • unicode_support.py
    • unicode.py
  • numba.misc
    • dummyarray.py
    • gdb_print_extension.py
    • mergesort.py
    • numba_gdbinfo.py
    • numba_sysinfo.py
    • quicksort.py
    • special.py

For the .parfors, .stencils and .pyccmodules, they can be considered their own separate specialized modules depending on the numba.np module.

Moreover there are following QoL tasks:

  • A test to make sure we don't accidentally add more NumPy usage in modules other than numba.np
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants