Function gpa::metrics::CreateGpuDevice

Function Documentation

IGpuDevice *gpa::metrics::CreateGpuDevice(gpa::metrics::GpuId const &gpuId)

Creates a metrics GPU device for the specified GPU id and returns an interface reference to it.

Note

The LinkAndPrepareForMdApiSourceUsage function must have been previously called for Intel GPUs when the Intel MD API library is to be used for metrics collection.

Note

The specified GpuId may indicate the default GPU should be used (all GpuId data members are zero).

Note

This function is NOT thread-safe.