GFXInfo
Documentation for GFXInfo.
This package provides Julia bindings for gfxinfo, a cross-platform library for retrieving GPU information.
GFXInfo.GPU — Type
GPURepresents 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 namefamily::String: The GPU family namedevice_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
0x0000150eGFXInfo.active_gpu — Method
active_gpu() -> GPUReturns 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