Commit ae8c8ce
Fix qualcomm backend build failure (pytorch#12751)
This fixes the build failure of qualcomm backend due to missing
including \<string\>.
```
[ 9%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/init.c.o
In file included from /home/jiefu/executorch/backends/qualcomm/runtime/backends/QnnOpPackageManager.cpp:8:
/home/jiefu/executorch/backends/qualcomm/runtime/backends/QnnOpPackageManager.h:25:12: error: ‘std::string’ has not been declared
25 | bool Add(std::string qnn_op_name);
| ^~~
/home/jiefu/executorch/backends/qualcomm/runtime/backends/QnnOpPackageManager.h:27:12: error: ‘std::string’ has not been declared
27 | bool Has(std::string qnn_op_name);
| ^~~
/home/jiefu/executorch/backends/qualcomm/runtime/backends/QnnOpPackageManager.h:29:14: error: ‘std::string’ has not been declared
29 | bool Erase(std::string qnn_op_name);
| ^~~
/home/jiefu/executorch/backends/qualcomm/runtime/backends/QnnOpPackageManager.h:34:27: error: ‘string’ is not a member of ‘std’
34 | std::unordered_set<std::string> qnn_op_package_path_set_;
| ^~~~~~
/home/jiefu/executorch/backends/qualcomm/runtime/backends/QnnOpPackageManager.h:11:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
10 | #include <unordered_set>
+++ |+#include <string>
11 |
```
---------
Signed-off-by: Jie Fu <[email protected]>
Co-authored-by: Gasoonjia <[email protected]>1 parent bf93115 commit ae8c8ce
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments