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

Handle dpnp functions and tests to run on CUDA devices #2075

Merged
merged 51 commits into from
Jan 17, 2025

Conversation

npolina4
Copy link
Collaborator

@npolina4 npolina4 commented Sep 24, 2024

This PR suggests updating some function implementations and tests to run on CUDA devices
The PR includes:

  1. Raise NotImplemetedError for unsupported functions
  2. Create skipped_tests_cuda.tbl for unsupported functions
  3. Skipped tests with a bug ticket for functions that should run on CUDA
  4. Implement is_cuda_backend() and is_cuda_device() to determine that the object has a CUDA backend and that the tests run on CUDA
  • 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?

dpnp/dpnp_iface.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface.py Outdated Show resolved Hide resolved
@npolina4 npolina4 marked this pull request as ready for review September 26, 2024 20:32
tests/test_indexing.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface.py Outdated Show resolved Hide resolved
tests/third_party/cupy/core_tests/test_dlpack.py Outdated Show resolved Hide resolved
tests/third_party/cupy/statistics_tests/test_meanvar.py Outdated Show resolved Hide resolved
@coveralls
Copy link
Collaborator

coveralls commented Dec 20, 2024

Coverage Status

coverage: 70.842% (-0.1%) from 70.943%
when pulling 58b81a8 on tests_cuda
into 498e705 on master.

Copy link
Contributor

@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.

I have only a minor comment. Overall LGTM.
Thank you @vlad-perevezentsev

Copy link
Contributor

Array API standard conformance tests for dpnp=0.17.0dev4=py312he4f9c94_55 ran successfully.
Passed: 949
Failed: 0
Skipped: 51

@vlad-perevezentsev vlad-perevezentsev merged commit 952a798 into master Jan 17, 2025
57 of 59 checks passed
@vlad-perevezentsev vlad-perevezentsev deleted the tests_cuda branch January 17, 2025 11:01
github-actions bot added a commit that referenced this pull request Jan 17, 2025
This PR suggests updating some function implementations and tests to run
on CUDA devices
The PR includes:
1. Raise NotImplemetedError for unsupported functions
2. Create **skipped_tests_cuda.tbl** for unsupported functions
3. Skipped tests with a bug ticket for functions that should run on CUDA
4. Implement **is_cuda_backend()** and **is_cuda_device()** to determine
that the object has a CUDA backend and that the tests run on CUDA
---------

Co-authored-by: Vladislav Perevezentsev <[email protected]> 952a798
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.

5 participants