Rate This Document
Findability
Accuracy
Completeness
Readability

UACCE Device Attribute Examples

SYSFS File

Attribute

Description

/sys/class/uacce/accelerator_device/attrs/available_instances

RO

Checks the number of available hardware queues on the current accelerator.

/sys/class/uacce/accelerator_device/attrs/node_id

RO

Checks the node ID of the current accelerator.

/sys/class/uacce/accelerator_device/attrs/algorithms

RO

Checks the algorithms supported by the current device.

/sys/class/uacce/accelerator_device/attrs/isolate_strategy

RW

  1. The write permission requires the root permission to set the isolation policy.
  2. The read permission checks the isolation policy of the current device.
  3. Isolation strategy
    1. 0: default value, indicating that no isolation policy is implemented for the device.
    2. Others: If the number of hardware faults that occur on the current device within one hour is greater than or equal to this value, the device is isolated immediately. (The maximum value is 65535. If the value is greater than 65535, the configuration fails.)

/sys/class/uacce/accelerator_device/attrs/isolate

RO

0: The device is in position. The algorithm queue can be obtained from the device through the WD interface.

1: The device is isolated. The algorithm queue cannot be obtained from the device through the WD interface.

Others: invalid values

accelerator_device indicates the name of an accelerator.