Skip to content

Plumb an allocator interface through the C++ runtime API #59

Closed

Description

@benvanik

The C API allows for an iree_allocator_t to be passed to all functions that may allocate (directly or indirectly). It'd be nice to carry that through the C++ API such that it can be used for all heap allocations. We can also pass the allocator down through the HAL to let Vulkan use it.

I don't think it's important to get the VM using an allocator - the codegen sequencer will be the choice for low memory consumption/code size.

As part of this it would be worth switching to fixed arrays (not absl::FixedArray, but an actual fixed array), intrusive lists, etc to avoid unneeded allocations of containers.

Activity

  1. added
    enhancement ➕
    on Oct 14, 2019
  2. added
    runtime
    on Mar 19, 2020
  3. benvanik commented on Nov 21, 2020

    @benvanik
    CollaboratorAuthor

    (the HAL drivers we care about in core are moving to C)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement ➕runtime

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions