sw/vec_iree: Fix breakage due to IREE API change
This change fixes a breakage due to latest IREE API change at https://github.com/openxla/iree/pull/15916/files#diff-de85a5b4788230179f7fde37ce8ede6e47d29f1e51434825f5d75010892612ce
Change-Id: If823f5550d67c433bbd6abe0a826a56c97f4f1bf
diff --git a/model_util/util.c b/model_util/util.c
index df0056d..a390e84 100644
--- a/model_util/util.c
+++ b/model_util/util.c
@@ -89,9 +89,9 @@
// Create hal_module
iree_vm_module_t *hal_module = NULL;
if (iree_status_is_ok(result)) {
- result =
- iree_hal_module_create(instance, *device, IREE_HAL_MODULE_FLAG_NONE,
- host_allocator, &hal_module);
+ result = iree_hal_module_create(instance, /*device_count=*/1, device,
+ IREE_HAL_MODULE_FLAG_NONE, host_allocator,
+ &hal_module);
}
iree_vm_module_t *modules[] = {hal_module, module};
#endif