Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/190683
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
d3bba5e to
0294c83
Compare
If PYTORCH_ROCM_ARCH is gfx1250-only, composable_kernel has no supported arch for ck_gemm and CMake fails with empty HIP_ARCHITECTURES. Disable USE_ROCM_CK_GEMM next to the existing gfx1250 ck_gemm filtering logic. Per review on ROCm#3458.
0294c83 to
c8443b5
Compare
|
Updated per @jithunnair-amd's review on companion ROCm#3458:
Branch rebased on current `main`; diff is 1 file, +6 lines. |
Disabling USE_ROCM_CK_GEMM in aten/src/ATen/CMakeLists.txt excluded the CK GEMM source files but still left -DUSE_ROCM_CK_GEMM defined (it is emitted earlier in cmake/Dependencies.cmake). The call sites in CUDABlas.cpp and GroupedBlas.cpp are guarded by USE_ROCM_CK_GEMM, so they were still compiled and linked against gemm_internal_ck/bgemm_internal_ck/group_gemm_ck, producing undefined references at link time for gfx1250-only builds. Move the gfx1250-only disable into cmake/Dependencies.cmake, before the -DUSE_ROCM_CK_GEMM flag is added, so the sources and their call sites are compiled out consistently.
…6735) JIRA ID : AIPYTORCH-804 ## Summary Enable `gfx125X-dcgpu` (gfx1250) in TheRock's PyTorch release matrix for **`release/2.12`** and **`nightly`**, matching the existing `release/2.11` behavior. Previously, `configure_pytorch_release_matrix.py` filtered gfx1250 out of those refs even though PyTorch now supports the arch: - `release/2.12`: ROCm/pytorch#3421 - `nightly`: upstream pytorch/pytorch#188597 (via TheRock's upstream nightly checkout) ## Changes - Remove `gfx125X-dcgpu` from the unsupported-family filter for `release/2.12` and `nightly` in `configure_pytorch_release_matrix.py`. ## Validation Both the single-arch and multi-arch gfx1250 PyTorch wheel builds are green with this matrix change (Python 3.12, ROCm `7.15.0a20260712`, index `rocm.nightlies.amd.com/whl-multi-arch`, `test_amdgpu_families=none`): | Scenario | `amdgpu_families` | Run | Result | |----------|-------------------|-----|--------| | Single-arch (gfx1250 only) | `gfx125X-dcgpu` | https://github.com/ROCm/TheRock/actions/runs/29936052631 | ✅ success | | Multi-arch (gfx942 + gfx1250) | `gfx94X-dcgpu;gfx125X-dcgpu` | https://github.com/ROCm/TheRock/actions/runs/29938470834 | ✅ success | Notes: - The **multi-arch** build (TheRock's production release/nightly path) works on stock `release/2.12` and `main` because `ck_gemm` is built as a separate library with gfx1250 filtered out of `HIP_ARCHITECTURES`; gfx1250 falls back to hipBLASLt at runtime, and CK GEMM stays enabled for gfx942/gfx950. - The **single-arch** gfx1250-only case additionally requires the CK-GEMM CMake fix in ROCm/pytorch#3458 (`release/2.12`) and pytorch/pytorch#190683 (`main`/nightly). These are not required for the multi-arch production builds.
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Summary
When gfx1250 is the only arch in
PYTORCH_ROCM_ARCH, disableUSE_ROCM_CK_GEMMincmake/Dependencies.cmakebefore the-DUSE_ROCM_CK_GEMMcompile flag is added. composable_kernel has no gfx1250support yet, so this ensures both the CK GEMM sources and their call sites
(guarded by
USE_ROCM_CK_GEMMinCUDABlas.cpp/GroupedBlas.cpp) arecompiled out consistently. Doing this only in
aten/src/ATen/CMakeLists.txtexcludes the sources but still defines
USE_ROCM_CK_GEMM, leaving undefinedreferences to
gemm_internal_ckat link time.Scope / impact
ck_gemmis stillbuilt as a separate library with gfx1250 filtered out of
HIP_ARCHITECTURES,so CK GEMM stays enabled for the other archs.
Related
release/2.12.release/2.13.Validation
Validated via TheRock dev wheel builds for gfx1250 (single-arch and multi-arch,
Python 3.12, ROCm 7.15 nightly). Single-arch gfx1250-only builds link cleanly
with this change; multi-arch builds are unaffected.
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang