[hipblaslt, rocwmma] Make the empty target default project configurable.#2136
Conversation
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.
bsyrowik
left a comment
There was a problem hiding this comment.
Seems like a reasonable workaround for now. Thanks!
| BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/rocWMMA" | ||
| BACKGROUND_BUILD | ||
| DEFAULT_GPU_TARGETS | ||
| gfx1100 # TODO: Fix rocwmma to accept an empty target list. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
Failures are spurious / related to: #2137 |
|
Local build of gfx10 verified fixed with this patch. |
## 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.
[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.
## 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.
…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.
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.