Skip to content

[Issue] Linux PyTorch wheels fail to build on gfx103x: Composable Kernel compile error CK_BUFFER_RESOURCE_3RD_DWORD undeclared #4768

@chiranjeevipattigidi

Description

@chiranjeevipattigidi

Summary:

The “Release portable Linux PyTorch Wheels” CI job fails while compiling PyTorch HIP sources due to an upstream/vendored Composable Kernel (CK) header referencing CK_BUFFER_RESOURCE_3RD_DWORD, which is not defined in this build environment.

Context:

  • Platform: Linux
  • Archs Impacted: gfx103x
  • Pytorch Versions: 2.11, nightly
  • Python Versions: all the supported versions
  • rocm_version: 7.13.0a20260423

Error:

2026-04-23T10:38:04.2916633Z In file included from /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/include/ck/utility/common_header.hpp:38:
2026-04-23T10:38:04.2918969Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/include/ck/utility/amd_buffer_addressing_builtins.hpp:33:48: error: use of undeclared identifier 'CK_BUFFER_RESOURCE_3RD_DWORD'
2026-04-23T10:38:04.2920842Z    33 |     wave_buffer_resource.config(Number<3>{}) = CK_BUFFER_RESOURCE_3RD_DWORD;
2026-04-23T10:38:04.2921574Z       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-04-23T10:38:04.2923212Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/include/ck/utility/amd_buffer_addressing_builtins.hpp:48:48: error: use of undeclared identifier 'CK_BUFFER_RESOURCE_3RD_DWORD'
2026-04-23T10:38:04.2925313Z    48 |     wave_buffer_resource.config(Number<3>{}) = CK_BUFFER_RESOURCE_3RD_DWORD;
2026-04-23T10:38:04.2926076Z       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-04-23T10:38:04.2927843Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/include/ck/utility/amd_buffer_addressing_builtins.hpp:61:22: error: use of undeclared identifier 'CK_BUFFER_RESOURCE_3RD_DWORD'
2026-04-23T10:38:04.2929478Z    61 |     auto flags     = CK_BUFFER_RESOURCE_3RD_DWORD;
2026-04-23T10:38:04.2929994Z       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-04-23T10:38:04.2931583Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/include/ck/utility/amd_buffer_addressing_builtins.hpp:73:22: error: use of undeclared identifier 'CK_BUFFER_RESOURCE_3RD_DWORD'
2026-04-23T10:38:04.2933249Z    73 |     auto flags     = CK_BUFFER_RESOURCE_3RD_DWORD;
2026-04-23T10:38:04.2933741Z       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-04-23T10:38:04.2934237Z 4 errors generated when compiling for gfx1033.
2026-04-23T10:38:04.2995194Z failed to execute:/opt/python/cp310-cp310/lib/python3.10/site-packages/_rocm_sdk_devel/llvm/bin/clang++  --offload-arch=gfx1030 --offload-arch=gfx1031 --offload-arch=gfx1032 --offload-arch=gfx1033 --offload-arch=gfx1034 --offload-arch=gfx1035 --offload-arch=gfx1036 -O3  -c -x hip /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/native/hip/bgemm_kernels/bgemm_kernel_bf16bf16bf16_256_256x256x32_32x32_4x4_4x64x1_4x64x1_1x16x1x16_4_Intrawave_v5.hip -o "/__w/TheRock/TheRock/external-

Full logs:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions