Skip to content

Create a minimal_executor_runner target #10830

Open
@kirklandsign

Description

@kirklandsign

🚀 The feature, motivation and pitch

Currently our executor_runner is under examples/portable, but it's not really portable.

These deps are not portable.

#include <gflags/gflags.h>
#include <executorch/extension/data_loader/file_data_loader.h>
#include <executorch/extension/evalue_util/print_evalue.h>
#include <executorch/extension/runner_util/inputs.h>

How about let's create a minimal_executor_runner, with runtime/core and portable libs only, and get rid of extensions/, specifically

  • no malloc
  • no syscalls; make an interface for syscalls, like open(), read(), write()
  • ideally no libc, libc++, or link to a static libc

This could prove that executorch can be really portable.

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

cc @larryliu0820 @JacobSzwejbka @lucylq @jathu

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchmodule: runtimeIssues related to the core runtime and code under runtime/

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions