Skip to content

Commit

Permalink
Fix device parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet committed May 23, 2024
1 parent 4562b79 commit 7be8803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shark/iree_utils/compile_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def get_iree_device_args(device, extra_args=[]):
def get_iree_target_triple(device):
args = get_iree_device_args(device)
for flag in args:
if "triple" in flag.split("-"):
triple = flag.split("=")
if "triple" in flag:
triple = flag.split("=")[-1]
return triple
return ""

Expand Down

0 comments on commit 7be8803

Please sign in to comment.