Skip to content

[hipblaslt, rocwmma] Make the empty target default project configurable.#2136

Merged
stellaraccident merged 1 commit into
mainfrom
users/stellaraccident/generic_empty_targets
Nov 14, 2025
Merged

[hipblaslt, rocwmma] Make the empty target default project configurable.#2136
stellaraccident merged 1 commit into
mainfrom
users/stellaraccident/generic_empty_targets

Conversation

@stellaraccident
Copy link
Copy Markdown
Collaborator

Neither hipblaslt nor rocwmma can build with an explicitly empty target list (the former because Tensile has issues and the latter because hipcc will silently default to gfx906, which is not supported by rocwmma).

There was an existing hack buried in the code to work around hipblaslt. Turns this into a real kwarg to the project declaration and defines it for both.

Neither hipblaslt nor rocwmma can build with an explicitly empty target list (the former because Tensile has issues and the latter because hipcc will silently default to gfx906, which is not supported by rocwmma).

There was an existing hack buried in the code to work around hipblaslt. Turns this into a real kwarg to the project declaration and defines it for both.
Copy link
Copy Markdown
Contributor

@bsyrowik bsyrowik left a comment

Choose a reason for hiding this comment

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

Seems like a reasonable workaround for now. Thanks!

Comment thread math-libs/CMakeLists.txt
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/rocWMMA"
BACKGROUND_BUILD
DEFAULT_GPU_TARGETS
gfx1100 # TODO: Fix rocwmma to accept an empty target list.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Long term it may make more sense to simply omit rocWMMA for a build where all targets have been filtered out. An empty target list will work now, but will build for 11 targets (possibly none of which were in the original list that was filtered), which will take a long time.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We can't really support per-architecture changes to the build graph. The correct thing to do (which other projects do) is differentiate between NOT DEFINED and empty when choosing a default target list. Projects should never override an explicitly given config value.

@stellaraccident
Copy link
Copy Markdown
Collaborator Author

Failures are spurious / related to: #2137

@stellaraccident
Copy link
Copy Markdown
Collaborator Author

Local build of gfx10 verified fixed with this patch.

@stellaraccident stellaraccident merged commit b98d87e into main Nov 14, 2025
31 of 33 checks passed
@stellaraccident stellaraccident deleted the users/stellaraccident/generic_empty_targets branch November 14, 2025 00:22
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage Nov 14, 2025
bsyrowik added a commit to ROCm/rocm-libraries that referenced this pull request Nov 17, 2025
## Motivation

Long-term rocWMMA fix for ROCm/TheRock#2136

## Technical Details

<!-- Explain the changes along with any relevant GitHub links. -->

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
assistant-librarian Bot pushed a commit to ROCm/rocWMMA that referenced this pull request Nov 17, 2025
[rocWMMA] Handle explicit empty target selection

## Motivation

Long-term rocWMMA fix for ROCm/TheRock#2136

## Technical Details

<!-- Explain the changes along with any relevant GitHub links. -->

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
bsyrowik added a commit to ROCm/rocm-libraries that referenced this pull request Nov 26, 2025
## Motivation

Long-term rocWMMA fix for ROCm/TheRock#2136

## Technical Details

<!-- Explain the changes along with any relevant GitHub links. -->

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
rponnuru5 pushed a commit that referenced this pull request Dec 9, 2025
…le. (#2136)

Neither hipblaslt nor rocwmma can build with an explicitly empty target
list (the former because Tensile has issues and the latter because hipcc
will silently default to gfx906, which is not supported by rocwmma).

There was an existing hack buried in the code to work around hipblaslt.
Turns this into a real kwarg to the project declaration and defines it
for both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants