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

Reuse dpctl.tensor.floor_divide() function. #1427

Closed
wants to merge 3 commits into from

Conversation

npolina4
Copy link
Collaborator

@npolina4 npolina4 commented Jun 13, 2023

Reused dpctl.tensor.floor_divide() function.
Fixed crash for device without support double precision.
Added tests.

The PR is about to close #1404.

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

@npolina4 npolina4 requested a review from antonwolfy June 13, 2023 08:54
dpnp/dpnp_container.py Outdated Show resolved Hide resolved
dpnp/dpnp_container.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_mathematical.py Outdated Show resolved Hide resolved
tests/test_mathematical.py Show resolved Hide resolved
dpnp/dpnp_algo/dpnp_elementwise_common.py Show resolved Hide resolved
dpnp/dpnp_algo/dpnp_elementwise_common.py Show resolved Hide resolved
dpnp/dpnp_iface_mathematical.py Show resolved Hide resolved
@@ -767,42 +768,7 @@ def floor_divide(x1, x2, dtype=None, out=None, where=True, **kwargs):

Copy link
Contributor

Choose a reason for hiding this comment

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

please update an example, since the output has different format now

@@ -147,9 +147,10 @@ def test_divide(self, dtype, lhs, rhs):
def test_fmod(self, dtype, lhs, rhs):
self._test_mathematical('fmod', dtype, lhs, rhs)

@pytest.mark.usefixtures("allow_fall_back_on_numpy")
@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True, no_complex=True))
@pytest.mark.parametrize("dtype", get_all_dtypes(no_complex=True))
Copy link
Contributor

Choose a reason for hiding this comment

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

can we unmute tests from tests/third_party/cupy/math_tests/test_arithmetic.py ?

@antonwolfy
Copy link
Contributor

blocked by issue in dpctl #1247

@npolina4 npolina4 closed this Jul 11, 2023
@npolina4 npolina4 deleted the reuse_floor_divide branch July 11, 2023 15:44
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.

dpnp.floor_divide() crash
2 participants