Skip to content

Commit

Permalink
Fix vk.target_env extensions and remove redundant SD imports. (#1826)
Browse files Browse the repository at this point in the history
* Remove redundant IREE runtime imports.

* Fix vulkan target env extensions.
  • Loading branch information
monorimet authored Sep 11, 2023
1 parent c61b6f8 commit 780f520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/stable_diffusion/shark_studio_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@
if not any(kw in x for kw in blacklist)
]
hiddenimports += [x for x in collect_submodules("iree") if "tests" not in x]
hiddenimports += ["iree._runtime", "iree._runtime_libs"]
3 changes: 2 additions & 1 deletion shark/iree_utils/vulkan_target_env_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def get_version(triple):
@functools.cache
def get_extensions(triple):
def make_ext_list(ext_list):
return ", ".join(ext_list)
res = ", ".join(ext_list)
return f"[{res}]"

arch, product, os = triple
if arch == "m1":
Expand Down

0 comments on commit 780f520

Please sign in to comment.