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

update tests for newly added integr dtypes (int8, int16, uint8-uint64) #2233

Open
wants to merge 12 commits into
base: extended_types_support
Choose a base branch
from

Conversation

vtavana
Copy link
Collaborator

@vtavana vtavana commented Dec 13, 2024

In this PR, tests are update to pass with newly added integer dtypes (int8, int16, uint8, uint16, uint32, uint64).
This PR is in continuation of #2230.

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

@vtavana vtavana self-assigned this Dec 13, 2024
Copy link
Contributor

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

@vtavana vtavana force-pushed the fix-test_product-for-new-dtypes branch from 00ed47d to 9b4c5a9 Compare December 17, 2024 02:27
antonwolfy and others added 4 commits December 16, 2024 19:38
DPC++ compiler released 2025.0.4 version where `__SYCL_COMPILER_VERSION`
is defined to `20241205`. But the fixes from #2211 and for
`sycl::ext::intel::math::cyl_bessel_i0(x)` support weren't mapped there.

Thus the PR proposes to bump
`__SYCL_COMPILER_REDUCTION_PROPERTIES_SUPPORT` and
`__SYCL_COMPILER_BESSEL_I0_SUPPORT` defines up to `20241210` value to
exclude DPC++ compiler 2025.0.4 version.
The PR proposes to resolve the issue observing in GitHub actions where
`mamba search --info` results into `The following argument was not
expected: --info` error. The error started to be reported since
`mamba==2.0.5` release.

As a workaround it is proposed to switch to `conda search --info`
command which works properly.

Note, #2231 is tuned here to consider available DPC++ version on
Windows.
@vtavana vtavana force-pushed the fix-test_product-for-new-dtypes branch from 2357a7c to fc64fa4 Compare December 17, 2024 03:41
@vtavana vtavana marked this pull request as ready for review December 17, 2024 04:53
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/tests/test_sum.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_linearalgebra.py Outdated Show resolved Hide resolved
dpnp/tests/test_amin_amax.py Outdated Show resolved Hide resolved
dpnp/tests/test_histogram.py Show resolved Hide resolved
dpnp/tests/test_mathematical.py Show resolved Hide resolved
dpnp/tests/test_mathematical.py Outdated Show resolved Hide resolved
dpnp/tests/test_mathematical.py Outdated Show resolved Hide resolved
dpnp/tests/third_party/cupy/testing/_loops.py Show resolved Hide resolved
vlad-perevezentsev and others added 3 commits December 17, 2024 06:38
This PR suggests updating the helper function
`generate_random_numpy_array()` by adding an argument `order` to
generate arrays in different orders

Additionally 
Input generation for tests was changed in #2227 , now `test_fft2` and
`test_fftn` do not use `order` parameter.
This PR suggests to update these tests to use input data with different
orders.
dpnp/tests/test_sum.py Outdated Show resolved Hide resolved
dpnp/tests/test_sum.py Outdated Show resolved Hide resolved
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.

Thank you @vtavana , LGTM

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