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

    • Interrupt handler: No

    • Signal handler: No

    • Thread-safe: Yes

    • Re-entrant: No

    • Async/Sync: Sync

  • Required privileges: None

  • Allowed execution state

    • Initialization: Yes

    • Operational: No

    • Reinit/Deinit Preparation: Yes

  • Maturity: GA

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.

Pre:

None