|
23 | 23 | "\n",
|
24 | 24 | "Before you begin:\n",
|
25 | 25 | "1. (In a clean virtual environment with a compatible Python version) Install executorch using `./install_executorch.sh`\n",
|
26 |
| - "2. Install MLSDK and Tosa using `examples/arm/setup.sh --disable-ethos-u-deps --enable-mlsdk-deps (For further guidance, refer to https://docs.pytorch.org/executorch/main/tutorial-arm.html)\n", |
| 26 | + "2. Install MLSDK and Tosa using `examples/arm/setup.sh --disable-ethos-u-deps --enable-mlsdk-deps` (For further guidance, refer to https://docs.pytorch.org/executorch/main/tutorial-arm.html)\n", |
27 | 27 | "3. Export vulkan environment variables and add MLSDK components to PATH and LD_LIBRARY_PATH using `examples/arm/ethos-u-scratch/setup_path.sh`\n",
|
28 | 28 | "\n",
|
29 | 29 | "With all commands executed from the base `executorch` folder.\n",
|
30 | 30 | "\n",
|
31 |
| - "\n", |
32 |
| - "\n", |
33 | 31 | "*Some scripts in this notebook produce long output logs: Configuring the 'Customizing Notebook Layout' settings to enable 'Output:scrolling' and setting 'Output:Text Line Limit' makes this more manageable*"
|
34 | 32 | ]
|
35 | 33 | },
|
|
165 | 163 | "All of this happens behind the scenes in `to_edge_transform_and_lower`. Printing the graph module shows that what is left in the graph is two quantization nodes for `x` and `y` going into an `executorch_call_delegate` node, followed by a dequantization node."
|
166 | 164 | ]
|
167 | 165 | },
|
| 166 | + { |
| 167 | + "cell_type": "code", |
| 168 | + "execution_count": null, |
| 169 | + "metadata": {}, |
| 170 | + "outputs": [], |
| 171 | + "source": [ |
| 172 | + "%%bash\n", |
| 173 | + "# Ensure the vulkan environment variables and MLSDK components are available on $PATH\n", |
| 174 | + "source ethos-u-scratch/setup_path.sh" |
| 175 | + ] |
| 176 | + }, |
168 | 177 | {
|
169 | 178 | "cell_type": "code",
|
170 | 179 | "execution_count": null,
|
|
220 | 229 | "\n",
|
221 | 230 | "\n",
|
222 | 231 | "After the AOT compilation flow is done, we need to build the executor_runner target. For this example the generic version will be used.\n",
|
223 |
| - "To do this, please ensure the following commands are executed before moving onto the next step.\n", |
| 232 | + "To do this, please ensure the following commands are executed before moving onto the next step." |
| 233 | + ] |
| 234 | + }, |
| 235 | + { |
| 236 | + "cell_type": "code", |
| 237 | + "execution_count": null, |
| 238 | + "metadata": {}, |
| 239 | + "outputs": [], |
| 240 | + "source": [ |
| 241 | + "%%bash\n", |
| 242 | + "# Ensure the vulkan environment variables and MLSDK components are available on $PATH\n", |
| 243 | + "source ethos-u-scratch/setup_path.sh\n", |
224 | 244 | "\n",
|
225 |
| - "Clean and configure the CMake build system. Compiled programs will appear in the executorch/cmake-out directory we create here.\n", |
226 |
| - "```\n", |
| 245 | + "# Compiled programs will appear in the executorch/cmake-out directory we create here.\n", |
| 246 | + "# Build example executor runner application to examples/arm/vgf_minimal_example\n", |
227 | 247 | "cmake \\\n",
|
228 | 248 | " -DCMAKE_INSTALL_PREFIX=cmake-out \\\n",
|
229 | 249 | " -DCMAKE_BUILD_TYPE=Debug \\\n",
|
|
237 | 257 | " -DEXECUTORCH_BUILD_VGF=ON \\\n",
|
238 | 258 | " -DEXECUTORCH_ENABLE_LOGGING=ON \\\n",
|
239 | 259 | " -DPYTHON_EXECUTABLE=python \\\n",
|
240 |
| - " -Bcmake-out .\n", |
241 |
| - "```\n", |
| 260 | + " -B../../cmake-out-vkml ../..\n", |
242 | 261 | "\n",
|
243 |
| - "Build the executor_runner target\n", |
244 |
| - "`cmake --build cmake-out --target executor_runner`\n" |
| 262 | + "cmake --build ../../cmake-out-vkml --target executor_runner" |
245 | 263 | ]
|
246 | 264 | },
|
247 | 265 | {
|
|
0 commit comments