Bumping HAL module version to 0.3.
This is a breaking change between compiler and runtime and versions
will not be compatible. Compiled artifacts using the HAL must be
recompiled.
diff --git a/compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir b/compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir
index d68b865..66f8dd7 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir
+++ b/compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir
@@ -33,7 +33,6 @@
%buffer_usage : i32,
%allocation_size : i64
) -> !vm.ref<!hal.buffer>
-attributes {minimum_version = 1 : i32}
// Imports a host byte buffer into a device visible buffer.
// If try!=0 then returns null if the given memory type cannot be mapped.
@@ -48,7 +47,6 @@
%offset : i64,
%length : i64
) -> !vm.ref<!hal.buffer>
-attributes {minimum_version = 1 : i32}
//===----------------------------------------------------------------------===//
// iree_hal_buffer_t
@@ -202,6 +200,9 @@
%queue_affinity : i64,
%binding_capacity : i32
) -> !vm.ref<!hal.command_buffer>
+attributes {
+ minimum_version = 3 : i32 // command buffer API version
+}
// Finalizes recording into the command buffer and prepares it for submission.
// No more commands can be recorded afterward.
@@ -448,16 +449,10 @@
//===----------------------------------------------------------------------===//
vm.import private @devices.count() -> i32
-attributes {
- minimum_version = 2 : i32,
- nosideeffects
-}
+attributes {nosideeffects}
vm.import private @devices.get(%index : i32) -> !vm.ref<!hal.device>
-attributes {
- minimum_version = 2 : i32,
- nosideeffects
-}
+attributes {nosideeffects}
//===----------------------------------------------------------------------===//
// iree_hal_executable_t
diff --git a/runtime/src/iree/modules/hal/module.c b/runtime/src/iree/modules/hal/module.c
index 777bcb3..fad75d0 100644
--- a/runtime/src/iree/modules/hal/module.c
+++ b/runtime/src/iree/modules/hal/module.c
@@ -32,8 +32,8 @@
// Module type definitions
//===----------------------------------------------------------------------===//
-#define IREE_HAL_MODULE_VERSION_0_2 0x00000002u
-#define IREE_HAL_MODULE_VERSION_LATEST IREE_HAL_MODULE_VERSION_0_2
+#define IREE_HAL_MODULE_VERSION_0_3 0x00000003u
+#define IREE_HAL_MODULE_VERSION_LATEST IREE_HAL_MODULE_VERSION_0_3
typedef struct iree_hal_module_t {
iree_allocator_t host_allocator;