[compile utils] Fix ROCM to not expect config.id as a default. (#1939)

This commit is contained in:
Stanley Winata
2023-11-06 08:44:53 -08:00
committed by GitHub
parent 92b694db4d
commit 500c4f2306

View File

@@ -582,7 +582,7 @@ def get_results(
"""Runs a .vmfb file given inputs and config and returns output."""
with DetailLogger(debug_timeout) as dl:
device_inputs = []
if device == "rocm":
if device == "rocm" and hasattr(config, "id"):
haldriver = ireert.get_driver("rocm")
haldevice = haldriver.create_device(
config.id,