GpuDevice

data class GpuDevice(val vendor: GpuDevice.Vendor, val model: String, val bus: String, val cardDev: List<Path>, val renderDev: List<Path>, val deviceId: Int?)

A GPU device on the host machine.

Parameters

vendor

Vendor of the GPU.

model

Model of the GPU.

bus

PCI slot which the device resides in.

cardDev

Path to the DRI primary node.

renderDev

Path to the DRI render node.

deviceId

The device ID for NVIDIA GPUs.

Constructors

Link copied to clipboard
constructor(vendor: GpuDevice.Vendor, model: String, bus: String, cardDev: List<Path>, renderDev: List<Path>, deviceId: Int?)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class Vendor

A vendor of GPU.

Properties

Link copied to clipboard
val bus: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Name of the GPU device.

Link copied to clipboard
Link copied to clipboard