GpuProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.GpuProfile

Implements

public final class GpuProfile
implements JsonSerializable<GpuProfile>

GPU settings for the Agent Pool.

Constructor Summary

Constructor Description
GpuProfile()

Creates an instance of GpuProfile class.

Method Summary

Modifier and Type Method and Description
GpuDriver driver()

Get the driver property: Whether to install GPU drivers.

DriverType driverType()

Get the driverType property: Specify the type of GPU driver to install when creating Windows agent pools.

static GpuProfile fromJson(JsonReader jsonReader)

Reads an instance of GpuProfile from the JsonReader.

NvidiaGPUProfile nvidia()

Get the nvidia property: NVIDIA-specific GPU settings.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GpuProfile withDriver(GpuDriver driver)

Set the driver property: Whether to install GPU drivers.

GpuProfile withDriverType(DriverType driverType)

Set the driverType property: Specify the type of GPU driver to install when creating Windows agent pools.

GpuProfile 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:

the driver value.

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:

the driverType value.

fromJson

public static GpuProfile fromJson(JsonReader jsonReader)

Reads an instance of GpuProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GpuProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GpuProfile.

nvidia

public NvidiaGPUProfile nvidia()

Get the nvidia property: NVIDIA-specific GPU settings.

Returns:

the nvidia value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

driver - the driver value to set.

Returns:

the GpuProfile object itself.

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:

driverType - the driverType value to set.

Returns:

the GpuProfile object itself.

withNvidia

public GpuProfile withNvidia(NvidiaGPUProfile nvidia)

Set the nvidia property: NVIDIA-specific GPU settings.

Parameters:

nvidia - the nvidia value to set.

Returns:

the GpuProfile object itself.

Applies to