From 9dc01aff75417eb7b344320e6084f37a4cb2cf59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= Date: Thu, 11 Sep 2025 17:11:52 +0800 Subject: [PATCH] log support unified_dlog --- .../kernel_launch_method_by_framework/cmake/func.cmake | 2 +- .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../softmax/kernel_launch_method_by_framework/cmake/func.cmake | 2 +- .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/cmake/func.cmake | 2 +- .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../matmul/kernel_launch_method_by_framework/cmake/func.cmake | 2 +- .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/cmake/func.cmake | 2 +- .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/cmake/func.cmake | 2 +- .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/cmake/func.cmake | 2 +- .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_host/CMakeLists.txt | 1 + 16 files changed, 16 insertions(+), 7 deletions(-) diff --git a/examples/activation/simplesoftmax/kernel_launch_method_by_framework/cmake/func.cmake b/examples/activation/simplesoftmax/kernel_launch_method_by_framework/cmake/func.cmake index 6301f39e..4d20b7a7 100644 --- a/examples/activation/simplesoftmax/kernel_launch_method_by_framework/cmake/func.cmake +++ b/examples/activation/simplesoftmax/kernel_launch_method_by_framework/cmake/func.cmake @@ -23,7 +23,7 @@ function(opbuild) message(STATUS "Opbuild generating sources") cmake_parse_arguments(OPBUILD "" "OUT_DIR;PROJECT_NAME;ACCESS_PREFIX" "OPS_SRC" ${ARGN}) execute_process(COMMAND ${CMAKE_COMPILE} -g -fPIC -shared -std=c++11 ${OPBUILD_OPS_SRC} -D_GLIBCXX_USE_CXX11_ABI=0 - -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lexe_graph -lregister -ltiling_api + -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lunified_dlog -lexe_graph -lregister -ltiling_api -o ${OPBUILD_OUT_DIR}/libascend_all_ops.so RESULT_VARIABLE EXEC_RESULT OUTPUT_VARIABLE EXEC_INFO diff --git a/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 38aecf8e..283ff971 100644 --- a/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -48,6 +48,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/activation/softmax/kernel_launch_method_by_framework/cmake/func.cmake b/examples/activation/softmax/kernel_launch_method_by_framework/cmake/func.cmake index 6301f39e..4d20b7a7 100644 --- a/examples/activation/softmax/kernel_launch_method_by_framework/cmake/func.cmake +++ b/examples/activation/softmax/kernel_launch_method_by_framework/cmake/func.cmake @@ -23,7 +23,7 @@ function(opbuild) message(STATUS "Opbuild generating sources") cmake_parse_arguments(OPBUILD "" "OUT_DIR;PROJECT_NAME;ACCESS_PREFIX" "OPS_SRC" ${ARGN}) execute_process(COMMAND ${CMAKE_COMPILE} -g -fPIC -shared -std=c++11 ${OPBUILD_OPS_SRC} -D_GLIBCXX_USE_CXX11_ABI=0 - -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lexe_graph -lregister -ltiling_api + -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lunified_dlog -lexe_graph -lregister -ltiling_api -o ${OPBUILD_OUT_DIR}/libascend_all_ops.so RESULT_VARIABLE EXEC_RESULT OUTPUT_VARIABLE EXEC_INFO diff --git a/examples/activation/softmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/activation/softmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 38aecf8e..283ff971 100644 --- a/examples/activation/softmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/activation/softmax/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -48,6 +48,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/matrix/batch_matmul/kernel_launch_method_by_framework/cmake/func.cmake b/examples/matrix/batch_matmul/kernel_launch_method_by_framework/cmake/func.cmake index 6301f39e..4d20b7a7 100644 --- a/examples/matrix/batch_matmul/kernel_launch_method_by_framework/cmake/func.cmake +++ b/examples/matrix/batch_matmul/kernel_launch_method_by_framework/cmake/func.cmake @@ -23,7 +23,7 @@ function(opbuild) message(STATUS "Opbuild generating sources") cmake_parse_arguments(OPBUILD "" "OUT_DIR;PROJECT_NAME;ACCESS_PREFIX" "OPS_SRC" ${ARGN}) execute_process(COMMAND ${CMAKE_COMPILE} -g -fPIC -shared -std=c++11 ${OPBUILD_OPS_SRC} -D_GLIBCXX_USE_CXX11_ABI=0 - -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lexe_graph -lregister -ltiling_api + -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lunified_dlog -lexe_graph -lregister -ltiling_api -o ${OPBUILD_OUT_DIR}/libascend_all_ops.so RESULT_VARIABLE EXEC_RESULT OUTPUT_VARIABLE EXEC_INFO diff --git a/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 38aecf8e..283ff971 100644 --- a/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -48,6 +48,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/matrix/matmul/kernel_launch_method_by_framework/cmake/func.cmake b/examples/matrix/matmul/kernel_launch_method_by_framework/cmake/func.cmake index 6301f39e..4d20b7a7 100644 --- a/examples/matrix/matmul/kernel_launch_method_by_framework/cmake/func.cmake +++ b/examples/matrix/matmul/kernel_launch_method_by_framework/cmake/func.cmake @@ -23,7 +23,7 @@ function(opbuild) message(STATUS "Opbuild generating sources") cmake_parse_arguments(OPBUILD "" "OUT_DIR;PROJECT_NAME;ACCESS_PREFIX" "OPS_SRC" ${ARGN}) execute_process(COMMAND ${CMAKE_COMPILE} -g -fPIC -shared -std=c++11 ${OPBUILD_OPS_SRC} -D_GLIBCXX_USE_CXX11_ABI=0 - -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lexe_graph -lregister -ltiling_api + -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lunified_dlog -lexe_graph -lregister -ltiling_api -o ${OPBUILD_OUT_DIR}/libascend_all_ops.so RESULT_VARIABLE EXEC_RESULT OUTPUT_VARIABLE EXEC_INFO diff --git a/examples/matrix/matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/matrix/matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 38aecf8e..283ff971 100644 --- a/examples/matrix/matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/matrix/matmul/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -48,6 +48,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/normalization/layernorm/kernel_launch_method_by_framework/cmake/func.cmake b/examples/normalization/layernorm/kernel_launch_method_by_framework/cmake/func.cmake index 6301f39e..4d20b7a7 100644 --- a/examples/normalization/layernorm/kernel_launch_method_by_framework/cmake/func.cmake +++ b/examples/normalization/layernorm/kernel_launch_method_by_framework/cmake/func.cmake @@ -23,7 +23,7 @@ function(opbuild) message(STATUS "Opbuild generating sources") cmake_parse_arguments(OPBUILD "" "OUT_DIR;PROJECT_NAME;ACCESS_PREFIX" "OPS_SRC" ${ARGN}) execute_process(COMMAND ${CMAKE_COMPILE} -g -fPIC -shared -std=c++11 ${OPBUILD_OPS_SRC} -D_GLIBCXX_USE_CXX11_ABI=0 - -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lexe_graph -lregister -ltiling_api + -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lunified_dlog -lexe_graph -lregister -ltiling_api -o ${OPBUILD_OUT_DIR}/libascend_all_ops.so RESULT_VARIABLE EXEC_RESULT OUTPUT_VARIABLE EXEC_INFO diff --git a/examples/normalization/layernorm/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/normalization/layernorm/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 38aecf8e..283ff971 100644 --- a/examples/normalization/layernorm/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/normalization/layernorm/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -48,6 +48,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/normalization/welford_update/kernel_launch_method_by_framework/cmake/func.cmake b/examples/normalization/welford_update/kernel_launch_method_by_framework/cmake/func.cmake index 4179dfd2..081fca78 100644 --- a/examples/normalization/welford_update/kernel_launch_method_by_framework/cmake/func.cmake +++ b/examples/normalization/welford_update/kernel_launch_method_by_framework/cmake/func.cmake @@ -15,7 +15,7 @@ function(opbuild) message(STATUS "Opbuild generating sources") cmake_parse_arguments(OPBUILD "" "OUT_DIR;PROJECT_NAME;ACCESS_PREFIX" "OPS_SRC" ${ARGN}) execute_process(COMMAND ${CMAKE_COMPILE} -g -fPIC -shared -std=c++11 ${OPBUILD_OPS_SRC} -D_GLIBCXX_USE_CXX11_ABI=0 - -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lexe_graph -lregister -ltiling_api + -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lunified_dlog -lexe_graph -lregister -ltiling_api -o ${OPBUILD_OUT_DIR}/libascend_all_ops.so RESULT_VARIABLE EXEC_RESULT OUTPUT_VARIABLE EXEC_INFO diff --git a/examples/normalization/welford_update/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/normalization/welford_update/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 40dd51cf..0b036ca0 100644 --- a/examples/normalization/welford_update/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/normalization/welford_update/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -40,6 +40,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/cmake/func.cmake b/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/cmake/func.cmake index 4179dfd2..081fca78 100644 --- a/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/cmake/func.cmake +++ b/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/cmake/func.cmake @@ -15,7 +15,7 @@ function(opbuild) message(STATUS "Opbuild generating sources") cmake_parse_arguments(OPBUILD "" "OUT_DIR;PROJECT_NAME;ACCESS_PREFIX" "OPS_SRC" ${ARGN}) execute_process(COMMAND ${CMAKE_COMPILE} -g -fPIC -shared -std=c++11 ${OPBUILD_OPS_SRC} -D_GLIBCXX_USE_CXX11_ABI=0 - -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lexe_graph -lregister -ltiling_api + -I ${ASCEND_CANN_PACKAGE_PATH}/include -L ${ASCEND_CANN_PACKAGE_PATH}/lib64 -lunified_dlog -lexe_graph -lregister -ltiling_api -o ${OPBUILD_OUT_DIR}/libascend_all_ops.so RESULT_VARIABLE EXEC_RESULT OUTPUT_VARIABLE EXEC_INFO diff --git a/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 40dd51cf..0b036ca0 100644 --- a/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/select/selectwithbytesmask/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -40,6 +40,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/sort/sort/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/sort/sort/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 40dd51cf..0b036ca0 100644 --- a/examples/sort/sort/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/sort/sort/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -40,6 +40,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register diff --git a/examples/sort/topk/kernel_launch_method_by_framework/op_host/CMakeLists.txt b/examples/sort/topk/kernel_launch_method_by_framework/op_host/CMakeLists.txt index 40dd51cf..0b036ca0 100644 --- a/examples/sort/topk/kernel_launch_method_by_framework/op_host/CMakeLists.txt +++ b/examples/sort/topk/kernel_launch_method_by_framework/op_host/CMakeLists.txt @@ -40,6 +40,7 @@ if(ENABLE_CROSS_COMPILE) ) endif() target_link_libraries(cust_optiling PRIVATE + unified_dlog intf_pub exe_graph register -- Gitee