if(BUILD_OPEN_PROJECT)
file(GLOB MC2_DZ)
if(MC2_DZ)
add_opapi_modules()
target_sources(${OPHOST_NAME}_opapi_obj PRIVATE ${MC2_DZ})
endif()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ops_legacy/op_tiling)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ops_legacy/op_api)
if(MC2_OPAPI_SRCS)
add_opapi_modules()
target_sources(${OPHOST_NAME}_opapi_obj PRIVATE ${MC2_OPAPI_SRCS})
endif()
if(UT_TEST_ALL OR OP_HOST_UT)
file(GLOB MC2_3RD_BLUE_COMM
${CMAKE_CURRENT_SOURCE_DIR}/../../tests/ut/framework_normal/common/op_cache_tiling.cpp
)
else()
file(GLOB MC2_3RD_BLUE_COMM
${CMAKE_CURRENT_SOURCE_DIR}/ops_legacy/op_tiling/op_cache_tiling.cpp
)
endif()
if(MC2_3RD_BLUE_COMM)
add_tiling_modules()
target_sources(${OPHOST_NAME}_tiling_obj PRIVATE ${MC2_3RD_BLUE_COMM})
endif()
endif()
file(GLOB MC2_3RD_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/mat_mul_v3/op_host/mat_mul_v3_def.cpp
${CMAKE_CURRENT_SOURCE_DIR}/mat_mul_v3/op_host/op_tiling/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/mat_mul_v3/op_host/op_tiling/arch35/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/batch_mat_mul_v3/op_host/batch_mat_mul_v3_def.cpp
${CMAKE_CURRENT_SOURCE_DIR}/batch_mat_mul_v3/op_host/op_tiling/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/batch_mat_mul_v3/op_host/op_tiling/arch35/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/quant_batch_matmul_v3/op_host/op_tiling/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/quant_batch_matmul_v3/op_host/op_tiling/arch35/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/weight_quant_batch_matmul_v2/op_host/op_tiling/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/weight_quant_batch_matmul_v2/op_host/op_tiling/arch35/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/common/op_host/op_tiling/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/grouped_matmul/op_tiling/*.cpp
)
if(MC2_3RD_SRCS AND (MC2_COMPILE OR SUB_MC2_COMPILE OR UT_TEST OR OP_HOST_UT))
add_tiling_modules()
target_sources(${OPHOST_NAME}_tiling_obj PRIVATE ${MC2_3RD_SRCS})
endif()
add_subdirectory(common/op_host)