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

conditional error handling for read_mgmt_files #21

Closed libc-furiosa closed 2 years ago

libc-furiosa commented 2 years ago

If any of the files specified in MGMT_FILES do not exist, the call to function list_devices() will fail.

For files that do not necessarily exist, the default value is applied when the file does not exist.

hyunsik commented 2 years ago

Actually, it was what I intended. Do you mean that fw_version is an optional file? I didn't know that. If you confirm the fact, I'll continue to review the code. Thank you!

libc-furiosa commented 2 years ago

In FPGA(XRT) environment, the fw_version file does not exist. If this API supports a development environment, this file is optional.