@@ -110,17 +110,45 @@ Note that if your conan profile does not specify the same compiler, standard
110
110
level, build type and runtime library as CMake, then that could potentially
111
111
cause issues. See the link above for profiles documentation.
112
112
113
- An example Android profile is bundled with this repository. Install it to
114
- your local conan prefix using:
113
+ [ conan ] : https://conan.io/
114
+ [ profile ] : https://docs.conan.io/2/reference/config_files/profiles.html
115
+
116
+ #### Android
117
+
118
+ An example Android profile is bundled with this repository. It can be installed
119
+ to your local conan prefix using:
115
120
116
121
``` sh
117
122
conan config install profiles -tf profiles
118
123
```
119
124
120
- and invoke it with ` -pr android ` in your ` conan install ` invocation.
121
-
122
- [ conan ] : https://conan.io/
123
- [ profile ] : https://docs.conan.io/2/reference/config_files/profiles.html
125
+ Use it by adding ` -pr android ` to your ` conan install ` invocation.
126
+
127
+ #### GPU
128
+
129
+ For GPU support add ` -o gpu=True ` to the ` conan install ` invocation.
130
+ > [ !NOTE]
131
+ > The tensorflow-lite conan package disables GPU by default and as such these
132
+ steps will not work currently. I have patched the recipe locally to enable GPU
133
+ support and will make this available on Conan Center or another repository
134
+ soon. In the mean time, my custom recipe can be be used as outlined
135
+ [ here] ( https://github.com/neuralize-ai/tensorflow-lite-conan ) . If you have
136
+ previously ` conan install ` ed, remove the existing TFLite package(s) using
137
+ ` conan remove "tensorflow-lite" ` . Make sure to create the TFLite package
138
+ version that is required in [ conanfile] ( /conanfile.py ) .
139
+
140
+ GPU support requires a functioning OpenCL installation. Refer to your OS
141
+ documentation for the steps for setting this up correctly for your GPU vendor.
142
+
143
+ #### NPU
144
+
145
+ There is support for executing on Qualcomm NPUs (more hardware support is
146
+ upcoming). Since this involves using Qualcomm's pre-compiled shared libraries,
147
+ I have created a Conan recipe that must be used
148
+ [ here] ( https://github.com/neuralize-ai/qnn-conan ) . Follow the instructions on
149
+ that repository and the steps above with ` -o with_npu=True ` supplied to the
150
+ ` conan install ` invocation. Make sure to create the package version required
151
+ in [ conanfile] ( /conanfile.py ) .
124
152
125
153
### Configure, build and test
126
154
0 commit comments