Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onert-micro] onert_micro_dev as default arm Target #13346

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions onert-micro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ unset(DIS_FLOAT CACHE)
unset(ENABLE_ONERT_MICRO_TEST CACHE)
unset(NOT_BUILD_EXTERNALS CACHE)

set(MICRO_ARM_BINARY "${MICRO_ARM_BUILD_DIR}/onert_micro/src/libonert_micro_interpreter.a")
set(MICRO_ARM_BINARY "${MICRO_ARM_BUILD_DIR}/onert_micro/src/libonert_micro_dev.a")

add_custom_command(
OUTPUT "${MICRO_ARM_BINARY}"
COMMAND "${CMAKE_MAKE_PROGRAM}" onert_micro_interpreter -j ${CPU_COUNT}
COMMAND "${CMAKE_MAKE_PROGRAM}" onert_micro_dev -j ${CPU_COUNT}
WORKING_DIRECTORY "${MICRO_ARM_BUILD_DIR}"
DEPENDS onert_micro_arm_cmake ${OM_CIRCLE_SCHEMA}
VERBATIM
Expand Down
6 changes: 4 additions & 2 deletions onert-micro/onert-micro/src/api/onert-micro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ DataBuffer readFile(const char *path)
if (!file.good())
{
std::string errmsg = "Failed to open file";
throw std::runtime_error(errmsg.c_str());
std::cerr << errmsg << std::endl;
exit(-1); // FIXME: proper way
}

file.seekg(0, std::ios::end);
Expand All @@ -57,7 +58,8 @@ DataBuffer readFile(const char *path)
if (file.fail())
{
std::string errmsg = "Failed to read file";
throw std::runtime_error(errmsg.c_str());
std::cerr << errmsg << std::endl;
exit(-1); // FIXME: proper way
}

return model_data;
Expand Down
Loading