GFXInfo

Documentation for GFXInfo.

This package provides Julia bindings for gfxinfo, a cross-platform library for retrieving GPU information.

GFXInfo.GPUType
GPU

Represents a GPU device with information about its vendor, model, family, and device ID.

Properties

  • vendor::String: The vendor name (e.g., "NVIDIA", "AMD", "Intel")
  • model::String: The GPU model name
  • family::String: The GPU family name
  • device_id::UInt32: The device ID

Example

julia> gpu = active_gpu()
GFXInfo.GPU(Ptr{Nothing}(0x000000000f4480c0))

julia> gpu.vendor
"AMD"

julia> gpu.model
"AMD Radeon 890M Graphics"

julia> gpu.family
"GC 11.5.0"

julia> gpu.device_id
0x0000150e
source
GFXInfo.active_gpuMethod
active_gpu() -> GPU

Returns information about the currently active GPU.

Returns

  • GPU: A GPU object containing information about the active graphics device

Throws

  • ErrorException: If no active GPU is found

Example

julia> gpu = active_gpu()
GFXInfo.GPU(Ptr{Nothing}(0x000000000f4480c0))

julia> gpu.vendor
"AMD"

julia> gpu.model
"AMD Radeon 890M Graphics"

julia> gpu.family
"GC 11.5.0"

julia> gpu.device_id
0x0000150e
source