Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update list of card brands. Fixes #34 #35

Merged
merged 2 commits into from
Nov 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions nvml-wrapper/src/enum_wrappers/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ pub enum Brand {
#[wrap(c_variant = "NVML_BRAND_NVS")]
NVS,
/// Targeted at virtualization (vGPUs).
///
/// Deprecated from API reporting, still here for backwards compatibility.
#[wrap(c_variant = "NVML_BRAND_GRID")]
GRID,
/// Targeted at gaming.
Expand All @@ -93,6 +95,40 @@ pub enum Brand {
/// Targeted at... people who don't quite need quadros?
#[wrap(c_variant = "NVML_BRAND_TITAN")]
Titan,
/// Targeted at virtualized apps.
#[wrap(c_variant = "NVML_BRAND_NVIDIA_VAPPS")]
VApps,
/// Targeted at virtualized pcs.
#[wrap(c_variant = "NVML_BRAND_NVIDIA_VPC")]
VPC,
/// Targeted at virtualized servers.
#[wrap(c_variant = "NVML_BRAND_NVIDIA_VCS")]
VCS,
/// Targeted at virtualized work stations.
#[wrap(c_variant = "NVML_BRAND_NVIDIA_VWS")]
VWS,
/// Targeted at cloud gaming servers.
#[wrap(c_variant = "NVML_BRAND_NVIDIA_CLOUD_GAMING")]
CloudGaming,
/// Deprecated from API reporting, still here for backwards compatibility.
/// Symlinks to [`Brand::CloudGaming`].
#[wrap(c_variant = "NVML_BRAND_NVIDIA_VGAMING")]
VGaming,
/// Targeted at Quadro RTX cards.
#[wrap(c_variant = "NVML_BRAND_QUADRO_RTX")]
QuadroRTX,
/// Targeted at RTX cards.
#[wrap(c_variant = "NVML_BRAND_NVIDIA_RTX")]
NvidiaRTX,
/// Nvidia
#[wrap(c_variant = "NVML_BRAND_NVIDIA")]
Nvidia,
/// Targeted at gaming RTX cards.
#[wrap(c_variant = "NVML_BRAND_GEFORCE_RTX")]
GeForceRTX,
/// Targeted at Titan RTX cards.
#[wrap(c_variant = "NVML_BRAND_TITAN_RTX")]
TitanRTX,
}

/**
Expand Down