Do not build "other" library for MIOpen (#2382)

MIOpen only needs the static CK library for convolutions.

[ROCm/composable_kernel commit: 87fdb368a7]
This commit is contained in:
JonathanLichtnerAMD
2025-06-24 08:32:16 -06:00
committed by GitHub
parent 79c30fbb3b
commit 1c8b1cee57

View File

@@ -295,11 +295,8 @@ FOREACH(subdir_path ${dir_list})
if(MIOPEN_REQ_LIBS_ONLY)
message(STATUS "Removing all sources that are not required for MIOpen")
if("${cmake_instance}" MATCHES "gemm" OR
"${cmake_instance}" MATCHES "mha" OR
"${cmake_instance}" MATCHES "contraction" OR
"${cmake_instance}" MATCHES "reduce")
set(add_inst 0)
if(NOT "${cmake_instance}" MATCHES "conv")
set(add_inst 0)
endif()
endif()
@@ -328,7 +325,7 @@ ENDFOREACH()
if(CK_DEVICE_OTHER_INSTANCES)
if(CK_DEVICE_OTHER_INSTANCES AND NOT MIOPEN_REQ_LIBS_ONLY)
add_library(device_other_operations ${CK_DEVICE_OTHER_INSTANCES})
add_library(composablekernels::device_other_operations ALIAS device_other_operations)
set_target_properties(device_other_operations PROPERTIES POSITION_INDEPENDENT_CODE ON)