File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
22
3- from .scripts .download_qnn_sdk import install_qnn_sdk , is_linux_x86 , QNN_ZIP_URL
3+ import cpuinfo
4+ import torch
45
6+ from .scripts .download_qnn_sdk import install_qnn_sdk , is_linux_x86 , QNN_ZIP_URL
57
68env_flag = os .getenv ("EXECUTORCH_BUILDING_WHEEL" , "0" ).lower ()
79# If users have preinstalled QNN_SDK_ROOT, we will use it.
2729 " export LD_LIBRARY_PATH="
2830 "$QNN_SDK_ROOT/lib/x86_64-linux-clang/:$LD_LIBRARY_PATH"
2931 )
32+
33+ info = cpuinfo .get_cpu_info ()
34+ vendor = info .get ("vendor_id_raw" , "" ).lower ()
35+ if "amd" in vendor :
36+ torch .backends .mkldnn .enabled = False
Original file line number Diff line number Diff line change 77set -e
88
99pip install pydot
10+ pip install py-cpuinfo
1011
1112# Check if running on macOS/Darwin
1213if [[ " $( uname -s) " == " Darwin" ]]; then
You can’t perform that action at this time.
0 commit comments