Skip to content

Commit f8dc996

Browse files
Update vulkan-target-triple for Radeon devices. (huggingface#446)
Signed-Off-by: Gaurav Shukla <gaurav@nod-labs.com> Signed-off-by: Gaurav Shukla <gaurav@nod-labs.com>
1 parent e6a9640 commit f8dc996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shark/iree_utils/vulkan_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ def get_vulkan_triple_flag(extra_args=[]):
4848
elif all(x in vulkan_device for x in ("RTX", "3090")):
4949
print(f"Found {vulkan_device} Device. Using ampere-rtx3090-linux")
5050
return "-iree-vulkan-target-triple=ampere-rtx3090-linux"
51-
elif any(x in vulkan_device for x in ("Radeon", "RX 5")):
51+
elif all(x in vulkan_device for x in ("Radeon", "RX 5")):
5252
print(
5353
"Found AMD Radeon RX 5000 series device. Using rdna1-5700xt-linux"
5454
)
5555
return "-iree-vulkan-target-triple=rdna1-5700xt-linux"
56-
elif all(x in vulkan_device for x in ("Radeon", "RX 6")):
56+
elif any(x in vulkan_device for x in ("Radeon", "RX 6")):
5757
print(
5858
"Found AMD Radeon RX 6000 series device. Using rdna2-unknown-linux"
5959
)

0 commit comments

Comments
 (0)