Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,16 @@ if(USE_ROCM)
if(HIPBLASLT_VEC_EXT)
list(APPEND HIP_CXX_FLAGS -DHIPBLASLT_VEC_EXT)
endif()
# composable_kernel has no gfx1250 support yet. If gfx1250 is the only arch,
# disable CK GEMM here (before -DUSE_ROCM_CK_GEMM is added) so that both the
# CK GEMM sources and their call sites (guarded by USE_ROCM_CK_GEMM in
# CUDABlas.cpp/GroupedBlas.cpp) are compiled out consistently. Doing this in
# aten/src/ATen/CMakeLists.txt instead excludes the sources but still defines
# USE_ROCM_CK_GEMM, leaving undefined references to gemm_internal_ck at link.
if("${PYTORCH_ROCM_ARCH}" STREQUAL "gfx1250")
message(WARNING "gfx1250 is the only arch in PYTORCH_ROCM_ARCH: disabling USE_ROCM_CK_GEMM (composable_kernel lacks gfx1250 support)")
caffe2_update_option(USE_ROCM_CK_GEMM OFF)
endif()
if(USE_ROCM_CK_GEMM)
list(APPEND HIP_CXX_FLAGS -DUSE_ROCM_CK_GEMM)
endif()
Expand Down