You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Starting moving device enumeration into the HAL dialect/compiled modules. #5724
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