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

[NDTensorsCUDAExt] Fix bug in slicing Adjoint CuMatrix #1236

Merged
merged 59 commits into from
Nov 8, 2023

Conversation

kmp5VT
Copy link
Collaborator

@kmp5VT kmp5VT commented Nov 3, 2023

Description

CUDA was numerically failing for DMRG when the number of sites was above 8 this is related to a truncation bug found in SVD. This merge should fix this bug and give DMRG equivalent results on GPU and CPU.

@mtfishman
Copy link
Member

Thanks! Could you add a regression test in NDTensors? Also maybe a good time to add a test for DMRG using NDTensorsCUDAExt as we discussed.

@mtfishman mtfishman changed the title [NDTensors] Address issue 1232 [NDTensorsCUDAExt] Fix bug in slicing Adjoint CuMatrix Nov 3, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3b1fa88) 85.42% compared to head (571aa42) 54.14%.

❗ Current head 571aa42 differs from pull request most recent head 6f448e0. Consider uploading reports for the commit 6f448e0 to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1236       +/-   ##
===========================================
- Coverage   85.42%   54.14%   -31.29%     
===========================================
  Files          89       87        -2     
  Lines        8400     7853      -547     
===========================================
- Hits         7176     4252     -2924     
- Misses       1224     3601     +2377     

see 65 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kmp5VT kmp5VT marked this pull request as ready for review November 8, 2023 19:30
@mtfishman
Copy link
Member

Looks good, thanks for sticking with all of the comments!

@mtfishman mtfishman merged commit 8ba0e17 into ITensor:main Nov 8, 2023
8 checks passed
@kmp5VT kmp5VT deleted the kmp5/debug/issue_1232 branch November 8, 2023 21:16
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.

[NDTensorsCUDAExt] [BUG] DMRG does not converge to correct energy
3 participants