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

Integrate IREE at iree-org/iree@c793f9 #351

Merged
merged 1 commit into from
Jan 10, 2025
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
2 changes: 1 addition & 1 deletion build_tools/cmake/arm-none-eabi-gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ elseif(ARM_CPU STREQUAL "cortex-m33")
set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -mthumb -march=armv8-m.main -mfloat-abi=hard -mfpu=fpv5-sp-d16")
endif()

set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -DIREE_TIME_NOW_FN=\"\{ return 0; \}\" -DIREE_WAIT_UNTIL_FN=wait_until")
set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -DIREE_FILE_IO_ENABLE=0 -DIREE_TIME_NOW_FN=\"\{ return 0; \}\" -DIREE_WAIT_UNTIL_FN=wait_until")
set(ARM_COMPILER_FLAGS "${ARM_COMPILER_FLAGS} -Wl,--gc-sections -ffunction-sections -fdata-sections")

if(ARM_CPU STREQUAL "cortex-m55")
Expand Down
2 changes: 1 addition & 1 deletion build_tools/install_iree_host_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else
IREE_VERSION="`sed -n 4p ${PATH_TO_REPO}/requirements-compiler.txt | sed 's/.*=//'`"
fi

echo "Installing IREE host tools candidate-${IREE_VERSION}"
echo "Installing IREE host tools version ${IREE_VERSION}"


# Create the IREE_HOST_BIN_DIR directory
Expand Down
2 changes: 1 addition & 1 deletion iree-release-link.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/iree-org/iree/releases/download/candidate-20240917.1019/iree-dist-20240917.1019-linux-x86_64.tar.xz
https://github.com/iree-org/iree/releases/download/iree-3.2.0rc20250110/iree-dist-3.2.0rc20250110-linux-x86_64.tar.xz
2 changes: 1 addition & 1 deletion requirements-compiler.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 The IREE bare-metal Arm Authors
# SPDX-License-Identifier: CC0-1.0
-f https://iree.dev/pip-release-links.html
iree-compiler==20240917.1019
iree-base-compiler==3.2.0rc20250110
4 changes: 2 additions & 2 deletions requirements-tools.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: 2022 The IREE bare-metal Arm Authors
# SPDX-License-Identifier: CC0-1.0
-f https://iree.dev/pip-release-links.html
iree-tools-tf==20240917.1019
iree-tools-tflite==20240917.1019
iree-tools-tf==20250110.1136
iree-tools-tflite==20250110.1136
3 changes: 2 additions & 1 deletion samples/simple_embedding/simple_embedding_float.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ iree_status_t Run() {
iree_vm_module_t* hal_module = NULL;
IREE_RETURN_IF_ERROR(iree_hal_module_create(
instance, /*device_count=*/1, &device, IREE_HAL_MODULE_FLAG_SYNCHRONOUS,
iree_allocator_system(), &hal_module));
iree_hal_module_debug_sink_stdio(stderr), iree_allocator_system(),
&hal_module));

// Load bytecode module from the embedded data.
const iree_const_byte_span_t module_data = load_bytecode_module_data();
Expand Down
3 changes: 2 additions & 1 deletion samples/simple_embedding/simple_embedding_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ iree_status_t Run() {
iree_vm_module_t* hal_module = NULL;
IREE_RETURN_IF_ERROR(iree_hal_module_create(
instance, /*device_count=*/1, &device, IREE_HAL_MODULE_FLAG_SYNCHRONOUS,
iree_allocator_system(), &hal_module));
iree_hal_module_debug_sink_stdio(stderr), iree_allocator_system(),
&hal_module));

// Load bytecode module from the embedded data.
const iree_const_byte_span_t module_data = load_bytecode_module_data();
Expand Down
4 changes: 3 additions & 1 deletion samples/simple_vec_mul/simple_mul_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ iree_status_t Run() {
iree_vm_module_t* hal_inline_module = NULL;
IREE_RETURN_IF_ERROR(iree_hal_inline_module_create(
instance, IREE_HAL_INLINE_MODULE_FLAG_NONE,
iree_hal_module_debug_sink_stdio(stderr),
iree_hal_device_allocator(device), iree_allocator_system(),
&hal_inline_module));
#endif
Expand All @@ -83,7 +84,8 @@ iree_status_t Run() {
iree_vm_module_t* hal_module = NULL;
IREE_RETURN_IF_ERROR(iree_hal_module_create(
instance, /*device_count=*/1, &device, IREE_HAL_MODULE_FLAG_SYNCHRONOUS,
iree_allocator_system(), &hal_module));
iree_hal_module_debug_sink_stdio(stderr), iree_allocator_system(),
&hal_module));

iree_vm_module_t* modules[] = {hal_module, module};
#endif
Expand Down
5 changes: 2 additions & 3 deletions samples/vision_inference/static_library_mnist.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
// Converted image embedded here:
#include "model_input.h"

extern const iree_hal_executable_library_header_t**
mnist_linked_llvm_cpu_library_query(
extern const iree_hal_executable_library_header_t** mnist_linked_library_query(
iree_hal_executable_library_version_t max_version,
const iree_hal_executable_environment_v0_t* environment);
// A function to create the bytecode or C module.
Expand All @@ -44,7 +43,7 @@ iree_status_t create_device_with_static_loader(iree_allocator_t host_allocator,

// Register the statically linked executable library.
const iree_hal_executable_library_query_fn_t libraries[] = {
mnist_linked_llvm_cpu_library_query,
mnist_linked_library_query,
};
iree_hal_executable_loader_t* library_loader = NULL;
iree_status_t status = iree_hal_static_library_loader_create(
Expand Down
2 changes: 1 addition & 1 deletion third_party/iree
Submodule iree updated 1794 files
Loading