GPU package bugfix / cmake improvement#3674
Merged
akohlmey merged 3 commits intolammps:developfrom Mar 7, 2023
Merged
Conversation
Collaborator
|
LGTM, might be able to simplify further by inheriting compile options from hip::host |
Member
Author
You're right. (Quite the challenge to find the right repo where this file comes from): https://github.com/ROCm-Developer-Tools/hipamd/blob/develop/hip-config.cmake.in#L180. |
hip::host already adds the __HIP_PLATFORM_AMD__ definition See https://github.com/ROCm-Developer-Tools/hipamd/blob/develop/hip-config.cmake.in#L180
Collaborator
|
Agreed -- quick reference is:
HIP owns the HIP-Language cmake: https://github.com/ROCm-Developer-Tools/HIP/blob/develop/hip-lang-config.cmake.in#L81, which is what gets turned off if you used (e.g.,) |
stanmoore1
approved these changes
Mar 6, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
hip::hostandhip::hipcubtargets. we don't want to assume where header include path is.num_atomswas not defined in case ofUSE_HIP_DEVICE_SORT.hccas HIP_PLATFORM, any modern ROCm install will useamd(only 5.1+ are worth looking at).Related Issue(s)
Author(s)
@rbberger
Licensing
By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).
Backward Compatibility
Implementation Notes
Bug was introduced by 4244d2e
Post Submission Checklist
Further Information, Files, and Links