Skip to content

Commit

Permalink
use kernel optimzer level -O3 and -LNO:simd for Xtensa HIFI5
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavis-2015 committed Oct 21, 2024
1 parent 122db20 commit 459569a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tensorflow/lite/micro/tools/make/ext_libs/xtensa.inc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ else ifeq ($(TARGET_ARCH), hifi5)
CCFLAGS += $(PLATFORM_FLAGS)
CXXFLAGS += $(PLATFORM_FLAGS)

# override KERNEL_OPTIMIZATION_LEVEL to enable higher performance
# Xtensa intrinsics.
KERNEL_OPTIMIZATION_LEVEL := -O3 -LNO:simd

NNLIB_PATH := $(MAKEFILE_DIR)/downloads/xa_nnlib_hifi5
NDSPLIB_PATH := $(MAKEFILE_DIR)/downloads/ndsplib-hifi5

Expand Down

0 comments on commit 459569a

Please sign in to comment.