GetHardwareInfo#

Fully qualified name: cupva::GetHardwareInfo

Defined in src/host/shared/include/install/cupva_host_common.hpp

const HardwareInfo &cupva::GetHardwareInfo()#

Query the hardware information on given platform.

Usage considerations

  • Allowed context for the API call

    • Thread-safe: Yes

  • API group

    • Init: Yes

    • Runtime: No

    • De-Init: No

Throws:
  • cupva::Exception(DriverAPIError) – The PVA driver returned an unexpected error.

  • cupva::Exception(InternalError) – A system library returned an unexpected error.

  • cupva::Exception(UnsupportedFeature) – The device does not support PVA hardware.

Returns:

The reference to the constant value of HardwareInfo, with the number of PVA engines and the number of VPU instances per PVA.