GpuProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. GpuProfile
- com.
Implements
public final class GpuProfile
implements JsonSerializable<GpuProfile>
GPU settings for the Agent Pool.
Constructor Summary
| Constructor | Description |
|---|---|
| GpuProfile() |
Creates an instance of Gpu |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Gpu |
driver()
Get the driver property: Whether to install GPU drivers. |
|
Driver |
driverType()
Get the driver |
|
static
Gpu |
fromJson(JsonReader jsonReader)
Reads an instance of Gpu |
|
Nvidia |
nvidia()
Get the nvidia property: NVIDIA-specific GPU settings. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Gpu |
withDriver(GpuDriver driver)
Set the driver property: Whether to install GPU drivers. |
|
Gpu |
withDriverType(DriverType driverType)
Set the driver |
|
Gpu |
withNvidia(NvidiaGPUProfile nvidia)
Set the nvidia property: NVIDIA-specific GPU settings. |
Methods inherited from java.lang.Object
Constructor Details
GpuProfile
public GpuProfile()
Creates an instance of GpuProfile class.
Method Details
driver
public GpuDriver driver()
Get the driver property: Whether to install GPU drivers. When it's not specified, default is Install.
Returns:
driverType
public DriverType driverType()
Get the driverType property: Specify the type of GPU driver to install when creating Windows agent pools. If not provided, AKS selects the driver based on system compatibility. This cannot be changed once the AgentPool has been created. This cannot be set on Linux AgentPools. For Linux AgentPools, the driver is selected based on system compatibility.
Returns:
fromJson
public static GpuProfile fromJson(JsonReader jsonReader)
Reads an instance of GpuProfile from the JsonReader.
Parameters:
Returns:
Throws:
nvidia
public NvidiaGPUProfile nvidia()
Get the nvidia property: NVIDIA-specific GPU settings.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDriver
public GpuProfile withDriver(GpuDriver driver)
Set the driver property: Whether to install GPU drivers. When it's not specified, default is Install.
Parameters:
Returns:
withDriverType
public GpuProfile withDriverType(DriverType driverType)
Set the driverType property: Specify the type of GPU driver to install when creating Windows agent pools. If not provided, AKS selects the driver based on system compatibility. This cannot be changed once the AgentPool has been created. This cannot be set on Linux AgentPools. For Linux AgentPools, the driver is selected based on system compatibility.
Parameters:
Returns:
withNvidia
public GpuProfile withNvidia(NvidiaGPUProfile nvidia)
Set the nvidia property: NVIDIA-specific GPU settings.
Parameters:
Returns: