We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a37675 commit 3eceeb7Copy full SHA for 3eceeb7
shark/iree_utils/compile_utils.py
@@ -278,13 +278,13 @@ def compile_module_to_flatbuffer(
278
def get_iree_module(flatbuffer_blob, device, device_idx=None):
279
# Returns the compiled module and the configs.
280
if device_idx is not None:
281
+ device = iree_device_map(device)
282
print("registering device id: ", device_idx)
283
haldriver = ireert.get_driver(device)
284
285
haldevice = haldriver.create_device(
286
haldriver.query_available_devices()[device_idx]["device_id"]
287
)
- # haldevice = haldriver.create_default_device()
288
config = ireert.Config(device=haldevice)
289
else:
290
config = get_iree_runtime_config(device)
0 commit comments