Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/193927
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 4c9f660 with merge base 6dd4bb6 ( CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "topic: not user facing" |
d79ffd3 to
d429481
Compare
d429481 to
771a4c4
Compare
771a4c4 to
a3b02fd
Compare
ROCm minimum supported version is now 7.1 (pytorch#192258), so guards for ROCM_VERSION >= 60300/60400/60500/70000 and == 60400 are always true or always false and can be dropped. Version-specific compiler/API compatibility shims (e.g. typedefs for pre-7.0 toolchains, differing HIP API call shapes) are left alone even where the same reasoning would apply, since they can't be verified without a real ROCm build.
a3b02fd to
68856a3
Compare
ROCm minimum supported version is now 7.1 (pytorch#192258), so the ROCM_VERSION == 60400 workarounds for the hipblaslt TT fp32 regression are dead code. This bug-specific exact-match workaround was duplicated in three places; all three are removed together here. Signed-off-by: cyy <[email protected]>
Extends this PR's sweep to ScaledBlas.cpp. The floor is ROCm 7.0, so every guard at or below 70000 is always true and every branch behind an #else is dead. That covers six ROCM_VERSION >= 70000 guards and four >= 60500 guards, including two whose user-visible messages promise support "for ROCm 6.5 and above" -- a version that never shipped, since 6.4 went straight to 7.0. Removing the 70000 guards at the two block-wise sites also drops the unreachable "requires ROCm 7.0 or later" branches. The >= 71400 guard stays; so do 70100, 70200 and < 70201 elsewhere in the tree, which are above the floor and still meaningful. test_cuda.py carries a comment asking that its arch list stay in sync with CUDAHooks::getHipblasltPreferredArchs. This PR deletes the 6.4 and 7.0 guards on the C++ side, so fold gfx1200/gfx1201/gfx950 unconditionally into the Python list to match. Note this block reads torch.version.hip rather than the SDK version, so it is a HIP threshold wearing a ROCm name; pytorch#193602 is reworking that plumbing and will touch these lines. Installed headers are deliberately left alone. ROCM_VERSION is undefined for out-of-tree extension builds -- cpp_extension.py passes only USE_ROCM, __HIP_PLATFORM_AMD__ and HIPBLAS_V2 -- so in those headers a >= guard is currently false and a < guard true, and removing either changes behavior rather than being a no-op. That is a separate change with its own argument. Test Plan: Applied to a gfx90a tree, re-hipified and rebuilt; ScaledBlas.cpp.o compiles clean and the full build exits 0 with no new warnings. ``` python tools/amd_build/build_amd.py pip install -e . -v --no-build-isolation ``` Preprocessor nesting in ScaledBlas.cpp balances to zero, and the arch gate still fires as expected on an unsupported part: ``` torch._scaled_mm(...) -> RuntimeError: torch._scaled_mm is only supported on CUDA devices with compute capability >= 9.0 or 8.9, or ROCm MI300+ ``` Lint: ``` lintrunner -a --take RUFF,PYFMT,FLAKE8 test/test_cuda.py ``` This commit was authored with an AI assistant.
61a27b6 to
26a9412
Compare
|
@claude do a deep review, concentrating on if there are any unintended side-effects of this change |
|
Claude finished @slayton58's task in 10m 46s —— View job The sweep is mostly sound, but I found one real behavior change on the CUDA side (an Deep review: unintended side-effects of removing outdated ROCm version guardsScope of what I checkedReviewed all 8 changed files across the 3 commits (
1. The premise: there is no build-time enforcement of the ROCm 7.0 floor
add_definitions(-DROCM_VERSION=${ROCM_VERSION_DEV_INT})computed at But I searched for a hard floor — That doesn't make the PR wrong — dropping support means dropping support, and CI only builds ROCm 7.x. But it does change the failure mode for an out-of-tree 6.x build from "clean #if defined(USE_ROCM) && ROCM_VERSION < 70000
#error "PyTorch requires ROCm 7.0 or newer"
#endifWorth noting the PR description says 7.0 while the commit messages say 7.1 — please settle on one, since it determines whether the remaining 2. Real issue: the
|
| Location | Guard |
|---|---|
aten/src/ATen/cuda/tunable/GemmHipblaslt.h:70,79 |
#if ROCM_VERSION >= 60300 |
aten/src/ATen/cuda/CUDADataType.h:84 |
#if !defined(USE_ROCM) || ROCM_VERSION >= 60300 |
c10/cuda/CUDAEvent.h:144,171,255 |
>= 70000 / < 70000 |
c10/cuda/CUDAAllocatorConfig.cpp:18 |
ROCM_VERSION < 70000 |
torch/csrc/jit/codegen/fuser/cuda/resource_strings.h:15 |
ROCM_VERSION < 70000 |
The GemmHipblaslt.h:70 case is notable because this PR edits that very file — it removes the == 60400 block but leaves two >= 60300 guards a few lines away. Not a correctness bug; just worth stating explicitly in the PR description that this is a partial sweep, so a reader doesn't infer the remaining sub-7.0 guards are meaningful.
One genuine trap for whoever does the follow-up: torch/headeronly/cuda/KernelUtils.h:16-20 must not be mechanically swept.
// ROCM_VERSION arrives as -DROCM_VERSION=FB_ROCM_VERSION and collapses to 0
// wherever the tp2 toolchain does not substitute it, which selects this branch.
#if ROCM_VERSION < 60400Here ROCM_VERSION can be 0 in fbcode, and the < 60400 branch is load-bearing precisely in that case. Deleting it as "always false" would break the fbcode build. Good that this PR left it alone; it deserves a mention so the next sweep doesn't.
5. Deletions I verified as genuinely safe
To be clear about what I'm not flagging — these all check out:
CUDAHooks.cpparch lists andScaledBlasDeviceUtils.cpp: pure list flattening,>= 71300/>= 71400correctly retained. Verified the resulting initializer lists and trailing commas are well-formed (CUDAHooks.cpp:546-571).ScaledBlas.cppdtype checks: the fourFloat4_e2m1fn_x2/Float8_e5m2/Float8_e4m3fnchecks wereTORCH_CHECK(ROCM_VERSION >= ...)on a compile-time constant — always-pass at >= 7.0, so removal is behavior-preserving. The commit message correctly observes ROCm 6.5 never shipped (6.4 went to 7.0), so those messages were unreachable and misleading.ScaledBlas.cppcheck_blockwise_e8m0fnu_arch_supported(): the#if ROCM_VERSION >= 70000wrapper around the definition is removed while the inner#if ROCM_VERSION >= 71400and the outer#ifdef USE_ROCM(line 69 / 84) are preserved. Nesting is correct, and all three call sites (lines 630, 1070, 1152) remain inside#ifdef USE_ROCM, so no non-ROCm build sees the now-unguarded definition. I checked this carefully since a stray#endifhere would break the CUDA build — it's fine._scaled_mxfp8_mxfp8/_scaled_mxfp4_mxfp4: dropping the#else TORCH_CHECK_NOT_IMPLEMENTED(...)arms is correct; those were unreachable. The remaining#ifdef USE_ROCM/#elsestructure at 1069-1082 and 1147-1175 still balances.- hipblaslt TT-fp32
== 60400workarounds (CUDABlas.cppbgemm_internal_cublaslt,GemmHipblaslt.h:640,Blas.cpp:171): exact-match on a version below the floor, so dead. Removing all three together is the right call — a partial removal would have left an inconsistent backend-selection policy. InBlas.cppthe deletion also removes the onlycublasCommonArgsconstruction inisInputCompliesAddmmCudaLt; I confirmed no later use ofargsin that function, so no orphaned variable or unused-variable warning. test_matmul_cuda.py: thegetRocmVersion() < (6, 4)Navi skip is dead, and thegetRocmVersionimport is correctly dropped. ConfirmedNAVI_ARCH,MI200_ARCH,isRocmArchAnyOfare all still used (lines 350, 372, 487, 505, 1204, 1273), so no orphaned imports.getRocmVersionremains used in other files, so the helper itself should stay.
Summary
| # | Finding | Severity |
|---|---|---|
| 2 | CUDABlas.cpp >= 70000 removal changes behavior in the feature-probe-gated HIPBLASLT_VEC_EXT path; guard was not a version tautology |
Medium — recommend restoring |
| 3 | common_cuda.py:284-288 comment references deleted ScaledBlas.cpp checks; >= (6, 5) now always true |
Low-Medium |
| 1 | ROCm 7.0 floor is unenforced; 6.x builds now silently take 7.x paths. PR body says 7.0, commits say 7.1 | Low (worth an #error) |
| 4 | Partial sweep — sub-7.0 guards remain in 5+ other files; KernelUtils.h must be excluded from any follow-up |
Informational |
Everything else in the diff is a faithful dead-code removal. Finding #2 is the only one I'd hold the merge for; #3 is a small follow-up in this PR; #1 and #4 are best handled as a note in the PR description or a separate change.
Review requested by @slayton58. Analysis only — no files were modified.
| branch remove_outdatdd_rocm
|
Pushed a merge of latest viable/strict, your #194983 cherry-picked in with authorship preserved, and a maintainer commit extending the sweep. I closed #194983 since it is fully contained here -- semantically it is one change, and splitting it meant two nearly identical reviews. I checked nothing was lost: every The maintainer commit takes It also syncs I deliberately left the installed headers alone -- Validation: applied to a gfx90a tree, re-hipified and rebuilt. Analysis assisted by AI. |
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
Upstream reverted pytorch#193927 because their internal ROCm is not at 7.0 yet. This fork's floor is 7.14, declared in cmake/public/LoadHIP.cmake, so every condition that revert restored is decidable here and the branch keeps its own bound. True at the floor, so the guard goes and the body stays: the hipblaslt arch lists in CUDAHooks (>= 60400, 70000, 71300, 71400 in the preferred set; >= 60300, 70000, 71400 in the supported set), the OCP fp8 hipDataType mappings and the Float4_e2m1fn_x2 mapping in GemmHipblaslt.h, the fp8 cases in CUDADataType.h, the scaled_mm arch list, the blockwise e8m0fnu paths in ScaledBlas.cpp, and the external-event flags in CUDAEvent.h. False at the floor, so guard and body both go: the two ROCm 6.4 hipblaslt TT fp32 workarounds in CUDABlas.cpp, Blas.cpp and GemmHipblaslt.h, and the "External CUDA-graph events on ROCm require ROCm 7.0+" check. Two conditions only collapse halfway, because their other operand is about CUDA rather than ROCm: `!defined(USE_ROCM) && CUDA_VERSION >= 12090` becomes `!defined(USE_ROCM)` (the CUDA floor is 13.3), and the expandable-segments guard in CUDAAllocatorConfig keeps its !defined(USE_ROCM) arm. The runtime TORCH_CHECKs that told a user their ROCm was too old for Float4_e2m1fn_x2 or the OCP fp8 types cannot fire, so they go too, along with the Python mirrors: test_cuda's copy of the preferred-arch list, its three getRocmVersion() >= (7, 14) skips, and common_cuda's fp8 arch gating. The two `ROCM_VERSION >= (8, 0)` checks stay -- 8.0 is above this floor, not below it. Test Plan: ``` lintrunner -a --revision HEAD ``` Clean. Every touched C++ file was checked for unchanged net #if/#endif depth and brace balance against its parent, which caught a stray #endif that an earlier conflict resolution had left in ScaledBlasDeviceUtils.cpp.
ROCm minimum supported version is now 7.0, so guards for ROCM_VERSION >= 60300/60400/60500/70000 are always true and can be dropped.
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang