Commit 0827fcd
[rocm-libraries] ROCm/rocm-libraries#11203 (commit 95f8050)
fix(hiptensor): drop
-amdgpu-early-inline-all/-amdgpu-function-calls flags from cmake to fix OOM
(#11203)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Motivation
Enabling `AlwaysInlinerPass` in ROCm llvm-project and with below
compiler flags enabled in CK, hiptensor and other libraries is causing
build hang.
- `-mllvm -amdgpu-early-inline-all=true`
- `-mllvm -amdgpu-function-calls=false`
This PR removes these flags from CMAKE so hiptensor builds rely on
default inlining, fixing the OOM.
JIRA ID : LCOMPILER-2589
## Technical Details
Removes the ROCm 6.2+ (`hip_VERSION_FLAT > 600241132`, non-Windows)
block in `projects/hiptensor/CMakeLists.txt` that added:
- `-amdgpu-early-inline-all=true` — marks essentially all functions for
early inlining.
- `-amdgpu-function-calls=false` — disables real device function calls,
forcing everything to be inlined.
## Test Plan
## Test Result
## Submission Checklist
- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.1 parent 265a506 commit 0827fcd
2 files changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 205 | | |
211 | 206 | | |
212 | 207 | | |
| |||
0 commit comments