From 1c8b1cee57b19abfad779c4b5d8edb4598e5c380 Mon Sep 17 00:00:00 2001 From: JonathanLichtnerAMD <195780826+JonathanLichtnerAMD@users.noreply.github.com> Date: Tue, 24 Jun 2025 08:32:16 -0600 Subject: [PATCH] Do not build "other" library for MIOpen (#2382) MIOpen only needs the static CK library for convolutions. [ROCm/composable_kernel commit: 87fdb368a73f1c21c2f556e87981801224c958ef] --- library/src/tensor_operation_instance/gpu/CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/library/src/tensor_operation_instance/gpu/CMakeLists.txt b/library/src/tensor_operation_instance/gpu/CMakeLists.txt index dbd503c0bd..aea3359aff 100644 --- a/library/src/tensor_operation_instance/gpu/CMakeLists.txt +++ b/library/src/tensor_operation_instance/gpu/CMakeLists.txt @@ -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)