Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/qualcomm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from .scripts.download_qnn_sdk import (
check_glibc_exist_and_validate,
# check_glibc_exist_and_validate,
install_qnn_sdk,
is_linux_x86,
)
Expand All @@ -15,7 +15,7 @@
env_flag not in ("1", "true", "yes")
and not qnn_sdk_root_flag
and is_linux_x86()
and check_glibc_exist_and_validate()
# and check_glibc_exist_and_validate()
):
ok = install_qnn_sdk()

Expand Down
10 changes: 3 additions & 7 deletions backends/qualcomm/scripts/download_qnn_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ def _download_qnn_sdk(dst_folder=SDK_DIR) -> Optional[pathlib.Path]:
if not is_linux_x86():
logger.info("[QNN] Skipping Qualcomm SDK (only supported on Linux x86).")
return None
elif not check_glibc_exist_and_validate():
logger.info("[QNN] Skipping Qualcomm SDK (glibc not found or version too old).")
return None
else:
logger.info("[QNN] Downloading Qualcomm SDK for Linux x86")

Expand Down Expand Up @@ -437,8 +434,7 @@ def install_qnn_sdk() -> bool:
Returns:
True if both steps succeeded (or were already satisfied), else False.
"""
if check_glibc_exist_and_validate():
if _ensure_libcxx_stack():
if _ensure_qnn_sdk_lib():
return True
if _ensure_libcxx_stack():
if _ensure_qnn_sdk_lib():
return True
return False
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,10 @@ def run(self):
# Following code is for building the Qualcomm backend.
from backends.qualcomm.scripts.download_qnn_sdk import (
_download_qnn_sdk,
check_glibc_exist_and_validate,
is_linux_x86,
)

if is_linux_x86() and check_glibc_exist_and_validate():
if is_linux_x86():
os.environ["EXECUTORCH_BUILDING_WHEEL"] = "1"

with tempfile.TemporaryDirectory() as tmpdir:
Expand Down
Loading