Skip to content

Commit

Permalink
Integrate IREE at iree-org/iree@1dbd0ba (#260)
Browse files Browse the repository at this point in the history
Updates IREE usage to match iree-org/iree@1dbd0ba and
candidate-20230623.561, respectively.
  • Loading branch information
marbre authored Jul 18, 2023
1 parent c2947c9 commit f65ed31
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
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/openxla/iree/releases/download/candidate-20230420.495/iree-dist-20230420.495-linux-x86_64.tar.xz
https://github.com/openxla/iree/releases/download/candidate-20230623.561/iree-dist-20230623.561-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,2 +1,2 @@
-f https://openxla.github.io/iree/pip-release-links.html
iree-compiler==20230420.495
iree-compiler==20230623.561
4 changes: 2 additions & 2 deletions requirements-tools.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-f https://openxla.github.io/iree/pip-release-links.html
iree-tools-tf==20230420.495
iree-tools-tflite==20230420.495
iree-tools-tf==20230623.561
iree-tools-tflite==20230623.561
12 changes: 6 additions & 6 deletions samples/simple_vec_mul/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(IREE_HAL_EXECUTABLE_LOADER_VMVX_MODULE)
C_IDENTIFIER
"simple_mul_int_bytecode_module_vmvx"
FLAGS
"--iree-input-type=mhlo"
"--iree-input-type=stablehlo"
)

add_executable(simple_vec_mul_int_bytecode_vmvx "")
Expand Down Expand Up @@ -70,7 +70,7 @@ if(IREE_HAL_EXECUTABLE_LOADER_VMVX_MODULE)
C_IDENTIFIER
"simple_mul_int_bytecode_module_vmvx"
FLAGS
"--iree-input-type=mhlo"
"--iree-input-type=stablehlo"
INLINE_HAL
)

Expand Down Expand Up @@ -137,7 +137,7 @@ static_module(
C_IDENTIFIER
"simple_mul_int"
FLAGS
"--iree-input-type=mhlo"
"--iree-input-type=stablehlo"
)

target_include_directories(simple_vec_mul_int_bytecode_static
Expand Down Expand Up @@ -181,7 +181,7 @@ static_module(
C_IDENTIFIER
"simple_mul_int"
FLAGS
"--iree-input-type=mhlo"
"--iree-input-type=stablehlo"
INLINE_HAL
)

Expand Down Expand Up @@ -231,7 +231,7 @@ static_module(
SRC
"${CMAKE_CURRENT_SOURCE_DIR}/simple_mul_int.mlir"
FLAGS
"--iree-input-type=mhlo"
"--iree-input-type=stablehlo"
EMITC
)

Expand Down Expand Up @@ -273,7 +273,7 @@ static_module(
SRC
"${CMAKE_CURRENT_SOURCE_DIR}/simple_mul_int.mlir"
FLAGS
"--iree-input-type=mhlo"
"--iree-input-type=stablehlo"
EMITC
INLINE_HAL
)
Expand Down
2 changes: 1 addition & 1 deletion samples/simple_vec_mul/simple_mul_int.mlir
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
func.func @simple_mul(%arg0: tensor<1024xi32>, %arg1: tensor<1024xi32>) -> tensor<1024xi32>
{
%0 = "mhlo.multiply"(%arg0, %arg1) : (tensor<1024xi32>, tensor<1024xi32>) -> tensor<1024xi32>
%0 = "stablehlo.multiply"(%arg0, %arg1) : (tensor<1024xi32>, tensor<1024xi32>) -> tensor<1024xi32>
return %0 : tensor<1024xi32>
}
4 changes: 2 additions & 2 deletions samples/vision_inference/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ target_sources(mnist_static_library
)

set(_COMPILE_ARGS)
list(APPEND _COMPILE_ARGS "--iree-input-type=mhlo")
list(APPEND _COMPILE_ARGS "--iree-input-type=stablehlo")
list(APPEND _COMPILE_ARGS "--output-format=vm-bytecode")
list(APPEND _COMPILE_ARGS "--iree-hal-target-backends=llvm-cpu")
list(APPEND _COMPILE_ARGS "--iree-llvmcpu-target-triple=${IREE_LLVM_TARGET_TRIPLE}")
Expand Down Expand Up @@ -115,7 +115,7 @@ add_ihex(mnist_static_library)
add_executable(mnist_static_library_c "")

set(_COMPILE_ARGS)
list(APPEND _COMPILE_ARGS "--iree-input-type=mhlo")
list(APPEND _COMPILE_ARGS "--iree-input-type=stablehlo")
list(APPEND _COMPILE_ARGS "--output-format=vm-c")
list(APPEND _COMPILE_ARGS "--iree-hal-target-backends=llvm-cpu")
list(APPEND _COMPILE_ARGS "--iree-llvmcpu-target-triple=${IREE_LLVM_TARGET_TRIPLE}")
Expand Down
2 changes: 1 addition & 1 deletion third_party/iree
Submodule iree updated from a80614 to 1dbd0b

0 comments on commit f65ed31

Please sign in to comment.