OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

GpuInfo

class optris_sdk.sdkinfo.GpuInfo(NamedTuple)

What the SDK found to run the GPU pipeline on.

  • Attribute compiled_with_gpu — whether this build has GPU support in it at all. False makes every other field moot.
  • Attribute available — whether a usable adapter was found. A software-only adapter counts as unusable, and says so in unavailable_reason -- running the pipeline on a rasteriser is slower than the CPU path it exists to replace.
  • Attribute is_software — whether the adapter is a software rasteriser.
  • Attribute vendor_id — PCI vendor id, or 0.
  • Attribute device_id — PCI device id, or 0.
  • Attribute api — 'D3D12', 'Vulkan', ... Empty when unavailable.
  • Attribute adapter — the adapter's name. Empty when unavailable.
  • Attribute vendor — the vendor's name, derived from vendor_id. Empty for an id the SDK has no name for, and empty when unavailable. Not the driver -- this field once carried what wgpu reports as its "vendor", which is the driver string, and on D3D12 that was a version number.
  • Attribute unavailable_reason — why there is no GPU, when there is not. Empty while available. Read this rather than inferring: "no adapter at all", "a software-only adapter" and "a device that could not be created" are three different machines to fix.
  • Attribute driver_name — the driver's own name where it reports one; empty otherwise -- D3D12 reports a version and no name.
  • Attribute driver_version — the driver's version where it reports one, free-form, e.g. '32.0.16.1692'.

GpuInfo — methods

__str__()