From a7399cbc5a5bdf8aaee868d7f7d3771e4065e72c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E5=B0=98?= Date: Sat, 13 Jul 2024 16:49:10 +0800 Subject: [PATCH] fix compiler opt --- .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + .../kernel_launch_method_by_framework/op_kernel/CMakeLists.txt | 1 + 9 files changed, 9 insertions(+) diff --git a/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 8c94a952..c50a409a 100644 --- a/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/activation/simplesoftmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/activation/softmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/activation/softmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 8c94a952..c50a409a 100644 --- a/examples/activation/softmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/activation/softmax/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/activation/softmaxflash/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/activation/softmaxflash/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 8c94a952..c50a409a 100644 --- a/examples/activation/softmaxflash/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/activation/softmaxflash/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/activation/softmaxgrad/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/activation/softmaxgrad/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 8c94a952..c50a409a 100644 --- a/examples/activation/softmaxgrad/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/activation/softmaxgrad/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/activation/softmaxgradfront/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/activation/softmaxgradfront/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 8c94a952..c50a409a 100644 --- a/examples/activation/softmaxgradfront/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/activation/softmaxgradfront/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 0d31a444..0bc4b638 100644 --- a/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/matrix/batch_matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/matrix/matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/matrix/matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 0d31a444..0bc4b638 100644 --- a/examples/matrix/matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/matrix/matmul/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/normalization/layernorm/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/normalization/layernorm/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 8c94a952..c50a409a 100644 --- a/examples/normalization/layernorm/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/normalization/layernorm/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) diff --git a/examples/pad/broadcast/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt b/examples/pad/broadcast/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt index 8c94a952..c50a409a 100644 --- a/examples/pad/broadcast/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt +++ b/examples/pad/broadcast/kernel_launch_method_by_framework/op_kernel/CMakeLists.txt @@ -2,6 +2,7 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx") add_ops_compile_options(ALL OPTIONS -g -O0) endif() +add_ops_compile_options(ALL OPTIONS -mllvm -cce-aicore-jump-expand=true) foreach(compute_unit ${ASCEND_COMPUTE_UNIT}) -- Gitee