Skip to content

Starting moving device enumeration into the HAL dialect/compiled modules. #5724

Open

Description

@benvanik

Today we require devices to be created before we load modules. Instead, we should be enumerating drivers and devices all the way from IR - this will let us tune the selection per-model and embed device database fragments in the modules themselves.

To start, the HAL runtime module should gain a "magical_device_query" method that is called on __init to grab the device to use. This will allow hal.ex.shared_device to be removed as the device being used just becomes a hal.variable.

The HAL module could then either be created with a specific device to use or a driver registry that can be used for enumeration. LTO would strip the driver registry stuff if the HAL module was never created with one.

From there we could start adding the enumeration ops to the HAL dialect. That dovetails with the device type work #3148.

Activity

  1. added
    compiler/dialects
    runtime
    on May 4, 2021
  2. self-assigned this
    on May 4, 2021
  3. moved this to Backlog in @benvanik 👻on Jun 10, 2022
  4. moved this to In Progress in IREEon Jun 30, 2022
  5. moved this to In Progress in (Deprecated) IREEon Feb 21, 2023
  6. moved this from In Progress to Backlog in (Deprecated) IREEon Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

compiler/dialectsruntime

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions