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

Feature/move experimental decorators to stable #1400

Merged
merged 14 commits into from
Mar 23, 2024

Conversation

diptorupd
Copy link
Contributor

@diptorupd diptorupd commented Mar 21, 2024

  • Have you provided a meaningful PR description?
    Migrates the kernel and device_func decorators from experimental to core.

Steps:

  • Improve docstrings [Done]

  • Copy the two decorators into core.decorators and replace/remove the existing kernel and func decorators. We are copying so that all tests still work and we do not do massive changes in one commit.

  • Update all tests to use decorators from top-level numba_dpex module instead of experimental.

  • Remove experimental.decorators.

  • 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?

  • If this PR is a work in progress, are you filing the PR as a draft?

Fixes #1071
Fixes #1395
Fixes #319

@diptorupd diptorupd marked this pull request as draft March 21, 2024 04:55
@diptorupd diptorupd force-pushed the feature/move_experimental_decorators_to_stable branch from 10d3081 to 6deac11 Compare March 21, 2024 05:06
@coveralls
Copy link
Collaborator

coveralls commented Mar 21, 2024

Coverage Status

coverage: 79.08% (-0.8%) from 79.854%
when pulling fb5642c on feature/move_experimental_decorators_to_stable
into 5245479 on main.

@diptorupd diptorupd force-pushed the feature/move_experimental_decorators_to_stable branch from 6deac11 to 737eebf Compare March 21, 2024 19:05
@diptorupd diptorupd marked this pull request as ready for review March 22, 2024 06:34
@diptorupd diptorupd requested a review from ZzEeKkAa March 22, 2024 06:34
@diptorupd
Copy link
Contributor Author

diptorupd commented Mar 22, 2024

@ZzEeKkAa The PR in one shot migrates user-facing features (kernel, device_func, call_kernel, call_kernel_async) from experimental to core.

I have also updated all tests, examples, and API docs.

Sorry for the huge diff, but will like you to review it once before I merge. I have kept the commits separate from each other so you can go commit be commit if that helps.

Copy link
Contributor

Documentation preview: show.

@diptorupd diptorupd force-pushed the feature/move_experimental_decorators_to_stable branch from 345c5b2 to 6ff53ea Compare March 22, 2024 21:37
@diptorupd diptorupd force-pushed the feature/move_experimental_decorators_to_stable branch from 6ff53ea to d0ad17e Compare March 22, 2024 22:20
@@ -137,4 +138,11 @@ def parse_sem_version(version_string: str) -> Tuple[int, int, int]:
__version__ = get_versions()["version"]
del get_versions

__all__ = types.__all__ + ["Range", "NdRange", "call_kernel"]
__all__ = types.__all__ + [
"call_kernel",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"call_kernel",
"call_kernel",
"call_kernel_async",

@ZzEeKkAa ZzEeKkAa force-pushed the feature/move_experimental_decorators_to_stable branch from c1b9071 to fb5642c Compare March 22, 2024 23:58
Copy link
Contributor

@ZzEeKkAa ZzEeKkAa left a comment

Choose a reason for hiding this comment

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

LGMT!

@diptorupd diptorupd merged commit b186528 into main Mar 23, 2024
58 of 66 checks passed
@diptorupd diptorupd deleted the feature/move_experimental_decorators_to_stable branch March 23, 2024 16:32
Copy link
Contributor

Documentation preview removed.

github-actions bot added a commit that referenced this pull request Mar 23, 2024
…ecorators_to_stable

Feature/move experimental decorators to stable b186528
github-actions bot added a commit to diptorupd/numba-dpex that referenced this pull request Mar 24, 2024
…erimental_decorators_to_stable

Feature/move experimental decorators to stable b186528
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants