Skip to content

Add additional AMD GPU targets from LLVM documentation#29018

Closed
chuckatkins wants to merge 1 commit intospack:developfrom
chuckatkins:add-more-amdgpu-targets
Closed

Add additional AMD GPU targets from LLVM documentation#29018
chuckatkins wants to merge 1 commit intospack:developfrom
chuckatkins:add-more-amdgpu-targets

Conversation

@chuckatkins
Copy link
Copy Markdown

Add additional AMD GPU targets from the AMD-forked LLVM documentation. This also expands the feature-modified target values and moves the knowledge of them to the base ROCmPackage.

@chuckatkins chuckatkins added AMD ROCm/hip Support for ROCm/hip labels Feb 16, 2022
@chuckatkins chuckatkins changed the title Add additional AMG GPU targets from LLVM documentation Add additional AMD GPU targets from LLVM documentation Feb 16, 2022
@chuckatkins chuckatkins force-pushed the add-more-amdgpu-targets branch 2 times, most recently from 545e897 to 9d36efa Compare February 17, 2022 15:22
@chuckatkins chuckatkins force-pushed the add-more-amdgpu-targets branch from 9d36efa to 84f43c4 Compare February 20, 2022 22:32
@chuckatkins
Copy link
Copy Markdown
Author

@haampie, @srekolam can one of you please take a look? It really helps with simplifying specs and environment configs at olcf

Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tldahlgren
Copy link
Copy Markdown
Contributor

Please resolve conflicts for the four packages.

@kwryankrattiger kwryankrattiger mentioned this pull request Jul 6, 2022
@cgmb
Copy link
Copy Markdown
Contributor

cgmb commented Jul 6, 2022

Very cool! I don't think there's anything special about the ROCm mathlibs (e.g., rocfft, rocblas, rocsolver) with respect to xnack. My understanding is that we specified xnack- on most of our default build architectures because there was a performance benefit for doing so and we didn't have users that needed xnack (except on gfx90a).

It might be nice to make all the options available to all packages with an amdgpu_target variant (not just the mathlibs). The list of possible amdgpu_target values with all possible combinations of target features becomes overwhelmingly long in spack info <package>, though.

@tldahlgren
Copy link
Copy Markdown
Contributor

@chuckatkins Please resolve the conflicts for this PR

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Feb 20, 2023

It seems part of this PR overlaps with #33871 @cgmb @chuckatkins Can you have a look if anything is to be salvagead here, or if it is better to close the PR?

@cgmb
Copy link
Copy Markdown
Contributor

cgmb commented Feb 20, 2023

Can you have a look if anything is to be salvagead here, or if it is better to close the PR?

This change adds logic that allows Spack to reason about target features, which is something that is still notably missing from ROCmPackage on develop. The proposed change significantly improves the logic surrounding target features, but would only make them available for certain libraries. When compared to the status quo, that's one step forward and one step back.

There is a bunch of useful logic that could be salvaged from this PR, but I don't think it has quite the right model for the amdgpu_target. It's not just a matter of fixing the merge conflicts; there are design decisions to be made.

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Nov 26, 2024

Closing, since there has been no activity in a while.

@alalazo alalazo closed this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants