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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CUDA][Compex] test_reference_numerics_large_jiterator_unary_cuda_complex64 broken after updating to numpy >= 1.25.0 #125198

Open
eqy opened this issue Apr 29, 2024 · 3 comments
Labels
module: complex Related to complex number support in PyTorch module: cuda Related to torch.cuda, and CUDA support in general module: jiterator module: numpy Related to numpy support, and also numpy compatibility of our operators triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@eqy
Copy link
Collaborator

eqy commented Apr 29, 2024

馃悰 Describe the bug

Unsure why this hasn't surfaced in upstream CI as we've observed it on sm90, sm86, sm80, sm60, ...

Doesn't surface on e.g., numpy==1.24.4 but starts appearing at least as early as numpy==1.25.0

  File "/usr/local/lib/python3.10/dist-packages/torch/testing/_internal/common_utils.py", line 3622, in assertEqual
    raise error_metas.pop()[0].to_error(
AssertionError: Tensor-likes are not close!

Mismatched elements: 400 / 10000 (4.0%)
Greatest absolute difference: nan at index (8800,) (up to 1e-05 allowed)
Greatest relative difference: nan at index (8800,) (up to 1.3e-06 allowed)

To execute this test, run the following from the base repo dir:
     python test/test_unary_ufuncs.py -k test_reference_numerics_large_jiterator_unary_cuda_complex64

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0

CC @nWEIdia @tinglvv @malfet @atalman

Versions

Source build as of 4/29

cc @ptrblck @ezyang @anjali411 @dylanbespalko @mruberry @lezcano @nikitaved @amjames @rgommers

@eqy eqy added module: cuda Related to torch.cuda, and CUDA support in general module: complex Related to complex number support in PyTorch module: numpy Related to numpy support, and also numpy compatibility of our operators module: jiterator labels Apr 29, 2024
@ezyang
Copy link
Contributor

ezyang commented Apr 30, 2024

Is it a Numpy problem or a PyTorch problem 馃

@nWEIdia

This comment was marked as off-topic.

@cpuhrsch cpuhrsch added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Apr 30, 2024
@eqy
Copy link
Collaborator Author

eqy commented Apr 30, 2024

Looking at an example mismatch, previously numpy returned nan+infj and now it returns -infj+infj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: complex Related to complex number support in PyTorch module: cuda Related to torch.cuda, and CUDA support in general module: jiterator module: numpy Related to numpy support, and also numpy compatibility of our operators triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

4 participants