-
Notifications
You must be signed in to change notification settings - Fork 18
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
HIP compilation #135
Open
ryanstocks00
wants to merge
26
commits into
wavefunction91:master
Choose a base branch
from
ryanstocks00:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,298
−134
Open
HIP compilation #135
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ddf0071
HIP compilation
ryanstocks00 6070afd
Add hip version of mgga kernels
ryanstocks00 bb4559f
Removed commented print
ryanstocks00 6d2d5f0
Copy paste cleanup
ryanstocks00 6b46eb6
More missing HIP functions
ryanstocks00 c81132f
Missing HIP kernel
ryanstocks00 c2e3cc2
Removed register from hip
ryanstocks00 e9bf3a2
Reduced shared mem req
ryanstocks00 e9c616d
HIP discovery fixes
ajaypanyala b781db3
update readme [skip ci]
ajaypanyala 08ae311
update ExchEXX hash
ajaypanyala 6c80aff
Merge remote-tracking branch 'upstream/master'
ryanstocks00 5b2273e
Fixed HIP compilation
ryanstocks00 9d9145d
hipblas.h -> hipblas/hipblas.h
ryanstocks00 1ad6fd4
Renamed SM_BLOCK_Y for cuda compilation
ryanstocks00 af72d05
Move a bunch of cuda -> hip
ryanstocks00 7c26939
Allow passing additional flags to obara saika host compilation
ryanstocks00 2bb4783
Moved obara saika compile flags override
ryanstocks00 ecf6eac
Compiling HIP on NVIDIA
ryanstocks00 23c78e9
Pseudofunctional HIP on NVIDIA
ryanstocks00 031fb0a
Fixed mem access violation
ryanstocks00 eeff105
Copy zmat from cuda
ryanstocks00 2089af6
Small refactor of cuda vvar kernel to support any grid/block dims
ryanstocks00 d4675df
Revert SM block size changes
ryanstocks00 bfd8803
More forceful double instead of double2
ryanstocks00 f0b1a51
AMD compilation
ryanstocks00 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 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 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 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 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 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
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.
I think the nbf_max usage here was potentially a bug? Have replaced with npts_max
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.
It's not a bug, but potentially not optimal on some hardware. What have you been testing on? In principle, these parameters should be tuned, these were just the ones that were found to perform best on V100/A100.
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.
Is it guaranteed that npts_max is greater than nbf_max? My understanding from a perusal of the function is that the y axis is iterating over the points rather than basis functions so the nbf_max could have been problematic? I'm still working on testing it all out, so certainly haven't got as far as performance tuning yet
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.
It's not guaranteed, although it usually is. I agree, what's there is likely a typo, but the kernel is hardened to take any block/grid dimension and still give the right results (i.e. whether or not loops get executed is based on the number of warps in the thread block).
I'll check to see whether this kneecaps the performance of this kernel in prod - if there's no change or it's better, I'll accept it for being "correct", if it's worse I'll come back with a hand-wavy/tin-foil-hat reason for why that's the case :).