Skip to content

Commit 3eceeb7

Browse files
Eliasj42Elias Joseph
andauthored
fixed a bug that would sometimes cause intel-gpu to appear unsupported (huggingface#899)
Co-authored-by: Elias Joseph <[email protected]>
1 parent 1a37675 commit 3eceeb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shark/iree_utils/compile_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,13 @@ def compile_module_to_flatbuffer(
278278
def get_iree_module(flatbuffer_blob, device, device_idx=None):
279279
# Returns the compiled module and the configs.
280280
if device_idx is not None:
281+
device = iree_device_map(device)
281282
print("registering device id: ", device_idx)
282283
haldriver = ireert.get_driver(device)
283284

284285
haldevice = haldriver.create_device(
285286
haldriver.query_available_devices()[device_idx]["device_id"]
286287
)
287-
# haldevice = haldriver.create_default_device()
288288
config = ireert.Config(device=haldevice)
289289
else:
290290
config = get_iree_runtime_config(device)

0 commit comments

Comments
 (0)