Skip to content

Commit 580fdd1

Browse files
committed
Minizing chages to only include relevant stuff
1 parent 1924b36 commit 580fdd1

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

examples/arm/ethos-u-setup/arm-zephyr-eabi-gcc.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
#
1818

1919
# Copied this file from core_platform/cmake/toolchain/arm-non-eabi-gcc.cmake And
20-
# modified to align better with cs300 platform
21-
20+
# modified to align better with cs300 platform. Currently, this cmake only
21+
# supports Arm Cortex m55. Future version may include support for other
22+
# chips, e.g. m33, m85
2223
set(TARGET_CPU
2324
"cortex-m55"
2425
CACHE STRING "Target CPU"

runtime/executor/pte_data_map.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PteDataMap::get_data(executorch::aten::string_view key) const {
3232
ET_CHECK_OR_RETURN_ERROR(
3333
named_data_->Get(i) != nullptr && named_data_->Get(i)->key() != nullptr,
3434
InvalidArgument,
35-
"Searching for key %.*s: NamedData at index %" PRId32 " is null",
35+
"Searching for key %.*s: NamedData at index %d is null",
3636
static_cast<int>(key.size()),
3737
key.data(),
3838
i);
@@ -47,7 +47,7 @@ PteDataMap::get_data(executorch::aten::string_view key) const {
4747
ET_CHECK_OR_RETURN_ERROR(
4848
segment_index < segments_->size(),
4949
InvalidArgument,
50-
"Segment index %zu for key %.*s is out of range for segments size %" PRId32,
50+
"Segment index %zu for key %.*s is out of range for segments size %u",
5151
segment_index,
5252
static_cast<int>(key.size()),
5353
key.data(),
@@ -74,16 +74,15 @@ ET_NODISCARD executorch::runtime::Result<const char*> PteDataMap::get_key(
7474
ET_CHECK_OR_RETURN_ERROR(
7575
index < named_data_->size(),
7676
InvalidArgument,
77-
"Index out of range: named_data size is %" PRId32
78-
", received index %" PRId32,
77+
"Index out of range: named_data size is %u, received index %u",
7978
named_data_->size(),
8079
index);
8180

8281
ET_CHECK_OR_RETURN_ERROR(
8382
named_data_->Get(index) != nullptr &&
8483
named_data_->Get(index)->key() != nullptr,
8584
InvalidArgument,
86-
"NamedData at index %" PRId32 " is null",
85+
"NamedData at index %u is null",
8786
index);
8887
return named_data_->Get(index)->key()->c_str();
8988
}

runtime/executor/tensor_parser_exec_aten.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ ET_NODISCARD Error validateTensorLayout(
133133
ET_CHECK_OR_RETURN_ERROR(
134134
s_tensor->sizes()->Get(i) == expected_layout.sizes()[i],
135135
InvalidExternalData,
136-
"Sizes mismatch. Expected %" PRId32 ", got %" PRId32
137-
" for size at index %d.",
136+
"Sizes mismatch. Expected %d, got %d for size at index %d.",
138137
s_tensor->sizes()->Get(i),
139138
expected_layout.sizes()[i],
140139
i);

runtime/kernel/operator_registry.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
"key: %s, is_fallback: %s", \
3131
k.data(), \
3232
k.is_fallback() ? "true" : "false");
33-
#define ET_LOG_TENSOR_META(meta_list) \
34-
for (const auto& meta : meta_list) { \
35-
ET_LOG(Info, "dtype: %d | dim order: [", int(meta.dtype_)); \
36-
for (size_t i = 0; i < meta.dim_order_.size(); i++) { \
37-
ET_LOG(Info, "%" PRId32 ",", static_cast<int32_t>(meta.dim_order_[i])); \
38-
} \
39-
ET_LOG(Info, "]"); \
33+
#define ET_LOG_TENSOR_META(meta_list) \
34+
for (const auto& meta : meta_list) { \
35+
ET_LOG(Info, "dtype: %d | dim order: [", int(meta.dtype_)); \
36+
for (size_t i = 0; i < meta.dim_order_.size(); i++) { \
37+
ET_LOG(Info, "%d,", static_cast<int32_t>(meta.dim_order_[i])); \
38+
} \
39+
ET_LOG(Info, "]"); \
4040
}
4141

4242
namespace executorch {

tools/cmake/preset/zephyr.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77

8-
set_overridable_option(CMAKE_SYSTEM_PROCESSOR cortex-m55)
9-
set_overridable_option(CMAKE_BUILD_TYPE Release)
10-
set_overridable_option(PYTHON_EXECUTABLE /home/zephyruser/executorch/.venv/bin/python3)
118
set_overridable_option(CMAKE_CXX_COMPILER_ID GNU)
129
set_overridable_option(CMAKE_TOOLCHAIN_FILE "${PROJECT_SOURCE_DIR}/examples/arm/ethos-u-setup/arm-zephyr-eabi-gcc.cmake")
1310
set_overridable_option(EXECUTORCH_ENABLE_LOGGING ON)
1411
set_overridable_option(EXECUTORCH_BUILD_COREML OFF)
1512
set_overridable_option(EXECUTORCH_FLATBUFFERS_MAX_ALIGNMENT 1024)
16-
set_overridable_option(EXECUTORCH_PAL_DEFAULT minimal)
1713
set_overridable_option(EXECUTORCH_LOG_LEVEL Info)
1814
set_overridable_option(EXECUTORCH_ENABLE_PROGRAM_VERIFICATION OFF)
1915
set_overridable_option(EXECUTORCH_ENABLE_EVENT_TRACER OFF)

0 commit comments

Comments
 (0)