From 0d8a4eaedb0ec2a7c0dcdc88ee4dff25c7bd144a Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Wed, 4 Sep 2024 07:36:41 -0700 Subject: [PATCH] copy all fmha headers when building library (#1497) * copy all fmha headers when building library * fix the rocm_install call for mha headers [ROCm/composable_kernel commit: 8b95d9ad523c426dd3c6ada1f5cc121689278f06] --- .../gpu/mha/CMakeLists.txt | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/library/src/tensor_operation_instance/gpu/mha/CMakeLists.txt b/library/src/tensor_operation_instance/gpu/mha/CMakeLists.txt index 8d159662a2..3499779c2a 100644 --- a/library/src/tensor_operation_instance/gpu/mha/CMakeLists.txt +++ b/library/src/tensor_operation_instance/gpu/mha/CMakeLists.txt @@ -18,17 +18,10 @@ endif() rocm_install(DIRECTORY ${CK_TILE_SRC_FOLDER} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ck_tile) -rocm_install(FILES - "${FMHA_SRC_FOLDER}/fmha_fwd.hpp" - "${FMHA_SRC_FOLDER}/bias.hpp" - "${FMHA_SRC_FOLDER}/mask.hpp" - DESTINATION include/ck_tile/ops -) - -# header for building lib -file(COPY ${FMHA_SRC_FOLDER}/fmha_fwd.hpp DESTINATION ${FMHA_CPP_FOLDER}) -file(COPY ${FMHA_SRC_FOLDER}/bias.hpp DESTINATION ${FMHA_CPP_FOLDER}) -file(COPY ${FMHA_SRC_FOLDER}/mask.hpp DESTINATION ${FMHA_CPP_FOLDER}) +file(GLOB MHA_HEADERS "${FMHA_SRC_FOLDER}/*.hpp") +rocm_install(FILES ${MHA_HEADERS} DESTINATION include/ck_tile/ops) +# headers for building lib +file(COPY ${MHA_HEADERS} DESTINATION ${FMHA_CPP_FOLDER}) # generate a list of kernels, but not actually emit files at config stage execute_process(