Skip to content

Commit

Permalink
Add config stanza for NVIDIA RTX 2080. (huggingface#658)
Browse files Browse the repository at this point in the history
Just happened to have this card on my Windows machine and verified that the SD demo works on it.

```
Average step time: 144.26142692565918ms/it
Clip Inference Avg time (ms) = (205.001 + 44.000) / 2 = 124.501
VAE Inference time (ms): 281.001

Total image generation time: 7.856997728347778sec
```

I'd love to add an API upstream to derive compiler tuning flags from a host device.
  • Loading branch information
stellaraccident authored Dec 19, 2022
1 parent 2bc6de6 commit 10630ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shark/iree_utils/vulkan_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def get_vulkan_triple_flag(extra_args=[]):
print("Found Apple M2 Device. Using m1-moltenvk-macos")
return "-iree-vulkan-target-triple=m1-moltenvk-macos"
# Nvidia Targets
elif all(x in vulkan_device for x in ("RTX", "2080")):
print(
f"Found {vulkan_device} Device. Using turing-rtx2080-{system_os}"
)
return f"-iree-vulkan-target-triple=turing-rtx2080-{system_os}"
elif all(x in vulkan_device for x in ("A100", "SXM4")):
print(
f"Found {vulkan_device} Device. Using ampere-rtx3080-{system_os}"
Expand Down

0 comments on commit 10630ab

Please sign in to comment.