Skip to content

Commit

Permalink
Merge pull request #1044 from fadushin/disable-smp-esp32c6
Browse files Browse the repository at this point in the history
Disable SMP on ESP32-C6

This change brings the build of the ESP32c6 image in-line with other
uni-processor ESP32 class MCUs, making

* the ESP32c6 consistent with other builds
* Benefitting from a small performance improvement (1.3x) in the ping pong
speed test, with negligible improvement in other perf tests.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Feb 26, 2024
2 parents c42fc66 + b5c9052 commit fdfba62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ set(HAVE_SOCKET 1 CACHE INTERNAL "Have symbol socket" FORCE)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../CMakeModules")

# Disable SMP with esp32 socs that have only one core
if (${IDF_TARGET} MATCHES "esp32s2|esp32c3|esp32h2")
if (${IDF_TARGET} MATCHES "esp32s2|esp32c3|esp32c6|esp32h2")
message("Disabling SMP as selected target only has one core")
set(AVM_DISABLE_SMP YES FORCE)
endif()
Expand Down

0 comments on commit fdfba62

Please sign in to comment.