Skip to content

Commit 7309076

Browse files
committed
Code Review
1 parent 884c161 commit 7309076

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

backends/qualcomm/aot/wrappers/TensorWrapper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
#include <executorch/backends/qualcomm/aot/wrappers/TensorWrapper.h>
10-
#include <executorch/backends/qualcomm/runtime/backends/QnnCustomProtocol.h>
1110

1211
#include <atomic>
1312
#include <cstring>

backends/qualcomm/aot/wrappers/TensorWrapper.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#define QNN_TENSOR_VER_PTR(x) (&((x).v2))
2020
#define QNN_OP_VER_PTR(x) (&((x).v1))
2121

22+
// This is for direct mode, especially LPAI
23+
#define QNN_TENSOR_ALIGNMENT 64
24+
2225
namespace executorch {
2326
namespace backends {
2427
namespace qnn {

backends/qualcomm/runtime/QnnExecuTorch.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
#define QNN_RUNTIME_LPAI_AFFINITY "qnn_runtime_lpai_affinity"
2727
#define QNN_RUNTIME_LPAI_CORE_SELECTION "qnn_runtime_lpai_core_selection"
2828

29-
// This is for direct mode, especially LPAI
30-
#define QNN_TENSOR_ALIGNMENT 64
31-
3229
#ifdef __cplusplus
3330
extern "C" {
3431
#endif // __cplusplus

backends/qualcomm/runtime/backends/direct_mode/QnnExecuTorchIdlWrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88
#include <executorch/backends/qualcomm/runtime/backends/direct_mode/QnnExecuTorchIdlWrapper.h>
9+
#include <executorch/backends/qualcomm/aot/wrappers/TensorWrapper.h>
910
#include <fcntl.h>
1011
#include <unistd.h>
1112
#include <fstream>

0 commit comments

Comments
 (0)