-
Notifications
You must be signed in to change notification settings - Fork 60
fix: improvements to bypass scalar indexing and improve GPU support #375
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
9e1ebfe
More tweaks for GPU support
kshyatt ea787ae
fix typo
kshyatt c3d33e2
Fix TC once again
kshyatt eb6b985
Remove unneeded Adjoint methods
kshyatt c4653c8
Remove unneeded TensorMapWithStorage?
kshyatt b46e23e
Death to to_cpu
kshyatt 5932066
Remove unneeded similarstoragetype method
kshyatt 46e5037
Add in TensorMap constructor
kshyatt 9fdc185
Restore former braiding tensor methods
kshyatt e948370
Fix type issue for sortperm
kshyatt 28dca1e
Remove stale type params
kshyatt 259309e
Apply suggestions from code review
kshyatt f23ce5c
Fix bad result of suggestion
kshyatt 3504de3
Another fix?
kshyatt 830d955
Force inds to move back to the CPU
kshyatt 1fe40a7
Return to glorious scalartype
kshyatt 55d25b5
Restore DiagonalTensorMap ctor
kshyatt a08bd23
Resolve trunc ambiguity
kshyatt 921ffc6
Remove extra CUDA ctor
kshyatt ed07969
Restore chopped argument
kshyatt 285ac16
Also remove no longer needed method
kshyatt ae018d1
Remove forced Int eltype
kshyatt 248f8a3
Get rid of no-op ctor
kshyatt 06d1ac5
Try to resolve ambiguity
kshyatt 8efbb64
Cover all truncation strategies
kshyatt fa16c1a
Short-circuit logic in `findtruncated`
kshyatt 0d844fb
Formatter
kshyatt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to overload the
truncate_domain!andtruncate_codomain!andtruncate_diagonal!functions instead?This looks like it is quite prone to ambiguity, and I guess we will also have to copy this for the
findtruncatedversion too if we want to have eigenvalue decompositions as well.(Warning, did not try to run this!)
Also, should this be
adaptorcollect?Also, I added the
DiagonalCuTensorMap, not sure if we have that type alias yet. (And also if this is required for them?)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried overriding those and the problem was I was getting compilation errors from GPUCompiler, it was enough of a rabbit hole that I thought it made more sense to punt this for now