-
Notifications
You must be signed in to change notification settings - Fork 26
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
ROCm packages: externals consistency #150
Merged
scheibelp
merged 3 commits into
LLNL:feature-gromacs
from
scheibelp:feature/rocm-externals-consistency
Mar 4, 2024
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,6 +187,27 @@ packages: | |
prefix: /opt/rocm-5.4.3/ | ||
- spec: [email protected] | ||
prefix: /opt/rocm-5.5.1/ | ||
hsakmt-roct: | ||
buildable: false | ||
externals: | ||
- spec: [email protected] | ||
prefix: /opt/rocm-5.4.3/ | ||
- spec: [email protected] | ||
prefix: /opt/rocm-5.5.1/ | ||
roctracer-dev-api: | ||
buildable: false | ||
externals: | ||
- spec: [email protected] | ||
prefix: /opt/rocm-5.4.3/ | ||
- spec: [email protected] | ||
prefix: /opt/rocm-5.5.1/ | ||
rocminfo: | ||
buildable: false | ||
externals: | ||
- spec: [email protected] | ||
prefix: /opt/rocm-5.4.3/ | ||
- spec: [email protected] | ||
prefix: /opt/rocm-5.5.1/ | ||
llvm-amdgpu: | ||
externals: | ||
- spec: [email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack.package import * | ||
from spack.package_base import PackageBase | ||
|
||
|
||
class RocmConsistency(PackageBase): | ||
with when("+rocm"): | ||
for ver in [ | ||
"5.1.0", | ||
"5.1.3", | ||
"5.2.0", | ||
"5.2.1", | ||
"5.2.3", | ||
"5.3.0", | ||
"5.3.3", | ||
"5.4.0", | ||
"5.4.3", | ||
"5.5.0", | ||
"5.5.1", | ||
"5.6.0", | ||
"5.6.1", | ||
"5.7.0", | ||
"5.7.1", | ||
"6.0.0", | ||
"6.0.2", | ||
]: | ||
depends_on(f"hip@{ver}", when=f"%rocmcc@{ver} ^hip") | ||
depends_on(f"hsakmt-roct@{ver}", when=f"^hip@{ver}") | ||
depends_on(f"hsa-rocr-dev@{ver}", when=f"^hip@{ver}") | ||
depends_on(f"comgr@{ver}", when=f"^hip@{ver}") | ||
depends_on(f"llvm-amdgpu@{ver} +rocm-device-libs", when=f"^hip@{ver}") | ||
depends_on(f"rocminfo@{ver}", when=f"^hip@{ver}") | ||
depends_on(f"roctracer-dev-api@{ver}", when=f"^hip@{ver}") |
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.
This works for rocm/5.4.3. However, if I change the compiler to [email protected], the spack concretizer still uses v5.4.3 for some packages. Following is the concretizer output for [email protected]
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.
Thanks: the components were synchronized with each other WRT version, but not with the compiler version. I added another constraint for that in 1f16b8b So when building with
%[email protected]
, we will use^[email protected]
.I'll note that with this change specifically, Benchpark constraints for rocmcc/rocm-externals are now more strict than within the non-external Spack builtin case (there's nothing inherently wrong with that).
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 this still work for a non-rocmcc compiler, say cce?
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.
Yes: this does not force the use of
%rocmcc
, it just makes sure that if you use%rocmcc
, that the compiler version matches the component version.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.
The spack concretization works for consistently for both rocm 5.4 and 5.5