MCPcopy Create free account
hub / github.com/pytorch/executorch / build_vkml_runtime

Function build_vkml_runtime

backends/arm/test/test_model.py:238–258  ·  view source on GitHub ↗
(
    et_build_root: str,
    script_path: str,
    extra_flags: str,
    build_path: str,
)

Source from the content-addressed store, hash-verified

236
237
238def build_vkml_runtime(
239 et_build_root: str,
240 script_path: str,
241 extra_flags: str,
242 build_path: str,
243):
244 run_external_cmd(
245 [
246 "bash",
247 os.path.join(script_path, "build_executor_runner_vkml.sh"),
248 f"--et_build_root={et_build_root}",
249 "--etdump",
250 "--bundleio",
251 "--build_type=Release",
252 f"--extra_build_flags=-DET_DUMP_OUTPUT=OFF {extra_flags}",
253 f"--output={build_path}",
254 ]
255 )
256
257 runner = os.path.join(build_path, "executor_runner")
258 return runner
259
260
261def run_vkml(script_path: str, pte_file: str, runner_build_path: str, extra_flags: str):

Callers 1

test_model.pyFile · 0.85

Calls 1

run_external_cmdFunction · 0.85

Tested by

no test coverage detected