Skip to content

Commit fd3926a

Browse files
committed
Fixed buck file and rebase
1 parent d8ff5f0 commit fd3926a

9 files changed

Lines changed: 9 additions & 44 deletions

File tree

backends/qualcomm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ backends/qualcomm
5151
| | # models on a device.
5252
| └── backends # Backends supported by QNN.
5353
| └── gpu / htp
54-
| ├── aarch64 # Configuration required to run on device. (Device Part).
55-
| └── x86_64 # Configuration required to compile graph on host. (AoT Part).
54+
| ├── target # Configuration required to run on device. (Device Part).
55+
| └── host # Configuration required to compile graph on host. (AoT Part).
5656
├── scripts # Misc supporting scripts, not related to core functionality.
5757
├── serialization # Contains files related to serializing QNN compiler options and SoC information
5858
├── tests # Unit tests and model tests go here.

backends/qualcomm/quantizer/targets.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ def define_common_targets():
1515
visibility = ["PUBLIC"],
1616
deps = [
1717
"//executorch/backends/transforms:decompose_sdpa",
18+
"//executorch/extension/pybindings:portable_lib",
19+
"//executorch/kernels/quantized:quantized_ops_lib",
1820
],
1921
)

backends/qualcomm/runtime/backends/CMakeLists.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,6 @@ target_sources(
4343
${CMAKE_CURRENT_LIST_DIR}/QnnProfiler.cpp
4444
)
4545

46-
set(HOST_ARCHITECTURE_GPU
47-
${CMAKE_CURRENT_LIST_DIR}/gpu/${CMAKE_SYSTEM_PROCESSOR}
48-
)
49-
set(HOST_ARCHITECTURE_HTP
50-
${CMAKE_CURRENT_LIST_DIR}/htp/${CMAKE_SYSTEM_PROCESSOR}
51-
)
52-
set(HOST_ARCHITECTURE_IR ${CMAKE_CURRENT_LIST_DIR}/ir/${CMAKE_SYSTEM_PROCESSOR})
53-
set(HOST_ARCHITECTURE_LPAI
54-
${CMAKE_CURRENT_LIST_DIR}/lpai/${CMAKE_SYSTEM_PROCESSOR}
55-
)
56-
5746
set(platform target)
5847
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86_64)
5948
set(platform host)
@@ -62,6 +51,7 @@ endif()
6251
set(HOST_ARCHITECTURE_GPU ${CMAKE_CURRENT_LIST_DIR}/gpu/${platform})
6352
set(HOST_ARCHITECTURE_HTP ${CMAKE_CURRENT_LIST_DIR}/htp/${platform})
6453
set(HOST_ARCHITECTURE_IR ${CMAKE_CURRENT_LIST_DIR}/ir/${platform})
54+
set(HOST_ARCHITECTURE_LPAI ${CMAKE_CURRENT_LIST_DIR}/lpai/${platform})
6555

6656
# qnn_device
6757
target_sources(

backends/qualcomm/runtime/backends/lpai/aarch64/LpaiGraph.cpp

Lines changed: 0 additions & 30 deletions
This file was deleted.

backends/qualcomm/runtime/backends/lpai/x86_64/LpaiContextCustomConfig.cpp renamed to backends/qualcomm/runtime/backends/lpai/host/LpaiContextCustomConfig.cpp

File renamed without changes.

backends/qualcomm/runtime/backends/lpai/x86_64/LpaiDevice.cpp renamed to backends/qualcomm/runtime/backends/lpai/host/LpaiDevice.cpp

File renamed without changes.

backends/qualcomm/runtime/backends/lpai/aarch64/LpaiContextCustomConfig.cpp renamed to backends/qualcomm/runtime/backends/lpai/target/LpaiContextCustomConfig.cpp

File renamed without changes.

backends/qualcomm/runtime/backends/lpai/aarch64/LpaiDevice.cpp renamed to backends/qualcomm/runtime/backends/lpai/target/LpaiDevice.cpp

File renamed without changes.

backends/qualcomm/runtime/targets.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ def define_common_targets():
4747
"backends/gpu/*.cpp",
4848
"backends/htp/*.cpp",
4949
"backends/ir/*.cpp",
50+
"backends/lpai/*.cpp",
5051
] + (["backends/gpu/host/*.cpp"] if include_aot_qnn_lib else ["backends/gpu/target/*.cpp"]) + (
5152
["backends/htp/host/*.cpp"] if include_aot_qnn_lib else ["backends/htp/target/*.cpp"]) + (
52-
["backends/ir/host/*.cpp"] if include_aot_qnn_lib else ["backends/ir/target/*.cpp"]
53+
["backends/ir/host/*.cpp"] if include_aot_qnn_lib else ["backends/ir/target/*.cpp"]) + (
54+
["backends/lpai/host/*.cpp"] if include_aot_qnn_lib else ["backends/lpai/target/*.cpp"]
5355
),
5456
exclude = ["Logging.cpp"],
5557
),
@@ -60,6 +62,7 @@ def define_common_targets():
6062
"backends/gpu/*.h",
6163
"backends/htp/*.h",
6264
"backends/ir/*.h",
65+
"backends/lpai/*.h",
6366
],
6467
exclude = ["Logging.h"],
6568
),

0 commit comments

Comments
 (0)