Skip to content

Conversation

npolina4
Copy link
Contributor

@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
>>> result = np.floor_divide(np.array([1, -1, -2, -9]), np.array([-2, -2, -2, -2]))
>>> [x for x in result]
[-1, 0, 1, 4]
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


@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