diff --git a/backends/qualcomm/__init__.py b/backends/qualcomm/__init__.py index 04ba5fcf24b..68f0c215efc 100644 --- a/backends/qualcomm/__init__.py +++ b/backends/qualcomm/__init__.py @@ -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, ) @@ -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() diff --git a/backends/qualcomm/scripts/download_qnn_sdk.py b/backends/qualcomm/scripts/download_qnn_sdk.py index 35006a41433..8cb428de003 100644 --- a/backends/qualcomm/scripts/download_qnn_sdk.py +++ b/backends/qualcomm/scripts/download_qnn_sdk.py @@ -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") @@ -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 diff --git a/setup.py b/setup.py index fe9543f3243..97a1d05096e 100644 --- a/setup.py +++ b/setup.py @@ -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: