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

Fix CUDA high-dimensional test #1441

Merged
merged 3 commits into from Nov 28, 2023
Merged

Fix CUDA high-dimensional test #1441

merged 3 commits into from Nov 28, 2023

Conversation

tbennun
Copy link
Collaborator

@tbennun tbennun commented Nov 22, 2023

Fixes invalid ranges used in a test.

Opened following #1337

Copy link
Contributor

@BenWeber42 BenWeber42 left a comment

Choose a reason for hiding this comment

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

Thanks!

Since this testcase only works with uin64 (for which overflow is well-defined to wrap around), we could also improve the assertion to require full equality:

    diff = np.linalg.norm(B_regression - B) / (N * M * K * L)
    print('Difference:', diff)
    assert diff <= 1e-5

I leave it up to you whether you want to include this in this PR. I can also implement this separately.

@tbennun tbennun merged commit cfa0871 into master Nov 28, 2023
9 checks passed
@tbennun tbennun deleted the fix-highdim-test branch November 28, 2023 06:37
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.

None yet

2 participants