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

Simplify DeviceFile creation and adopt devfs module #15

Closed hyunsik closed 2 years ago

hyunsik commented 2 years ago

This PR adds devfs module, offering more abstracted ways to access devfs related things. This PR also includes other changes using the newly adopted devfs APIs.

Please note that this change of PR removes the support of the npu device name form like npu0pe0-1-2. It's because we need to support only the combination of PEs like 0-3, 4-8 or 0-1,2-3,4-5,6-7 even when the renegade is released out. So, the simpler way to represent a range of PEs would be enough.

hyunsik commented 2 years ago

네 빠른 리뷰 감사합니다!