You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 74fadf0
Browse filesBrowse the repository at this point in the historyBrowse files
Tighten the generated ESP-IDF component's sources and warnings
The generator vendored kernel util sources from KERNELS_UTIL_ALL_DEPS_SRCS,
which lacks stack_util.cpp and grid_sampler_2d_util.cpp, so a profile with
aten::stack.out failed to link with an undefined stack_out_impl. Both files are
added to the list, which also fixes CMake's selected_kernels_util_all_deps
library built from it, and the generator now globs the util directory so the
next new util file cannot go missing.
flatcc was vendored and compiled, but nothing in the component includes it, so
it is no longer shipped. Only internal headers (tensor_parser.h and the
generated schema headers) include flatbuffers, so it moves to priv_include,
out of consumers' include paths where it could collide with another
component's copy; FLATBUFFERS_MAX_ALIGNMENT becomes private with it.
The blanket per-source -Wno-error hid every warning class. With the log format
sites fixed in the previous commit, the vendored sources build clean under
ESP-IDF's -Werror for ESP32-S3 and ESP32-C6, so only deprecation warnings,
from ExecuTorch's own deprecated aliases, stay disabled. ET_OPTIMIZE_SIZE now
defaults to y, since -Os on the runtime saves about 72 KB of code in an -O2
application. It costs speed (the ESP32-S3 smoke model went from 7.4 to 10.9 ms
per frame), which the Kconfig help now says.
Newlib's nano printf (CONFIG_LIBC_NEWLIB_NANO_FORMAT) has no 64-bit integer
formats, and ExecuTorch's error messages print about 80 of them, so with it a
logged failure misprints or crashes the app. The component now compiles
ExecuTorch logging out under nano formatting and prints a CMake warning saying
so; CI checks the warning. Picolibc, ESP-IDF's default, and full newlib format
them correctly on Xtensa and RISC-V.
Authored with Claude Code.
0 commit comments