furiosa-ai / device-api

APIs that offers NPU devices' information and allow to control the devices
Apache License 2.0
5 stars 8 forks source link

suggestion for lazy loading of mgmt_files #31

Closed libc-furiosa closed 2 years ago

libc-furiosa commented 2 years ago

With the current implementation, mgmt_files are read at once. Unnecessary reads occur when only few fields of DeviceInfo are needed. Moreover, the existence of unstable channels can unintentionally affect the system.

How about not reading anything during initialization, and reading values when needed?