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

Apply fallback to numpy for all unsupported functions on cuda devices. #2075

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

npolina4
Copy link
Collaborator

@npolina4 npolina4 commented Sep 24, 2024

Apply fallback to numpy for all unsupported functions on CUDA devices.

Added tests/skipped_tests_cuda.tbl

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

View rendered docs @ https://intelpython.github.io/dpnp/pull/2075/index.html

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
Returns
-------
out : bool
Return ``True`` if object has a cuda backend, otherwise``False``.
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
Return ``True`` if object has a cuda backend, otherwise``False``.
Return ``True`` if object has a CUDA backend, otherwise ``False``.

@@ -11,24 +11,18 @@

def _gen_array(dtype, alloc_q=None):
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
def _gen_array(dtype, alloc_q=None):
# TODO: to roll back the changes once the issue with CUDA support is resolved for random
def _gen_array(dtype, alloc_q=None):

@@ -11,6 +11,7 @@
)


@pytest.mark.usefixtures("allow_fall_back_on_numpy")
Copy link
Contributor

Choose a reason for hiding this comment

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

dpnp.median has been implemented in #2117

Suggested change
@pytest.mark.usefixtures("allow_fall_back_on_numpy")

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.

3 participants