com.pulumi.gcp.container.kotlin.inputs.ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property gpuSharingStrategy The type of GPU sharing strategy to enable on the GPU node.
* Accepted values are:
* * `"TIME_SHARING"`: Allow multiple containers to have [time-shared](https://cloud.google.com/kubernetes-engine/docs/concepts/timesharing-gpus) access to a single GPU device.
* * `"MPS"`: Enable co-operative multi-process CUDA workloads to run concurrently on a single GPU device with [MPS](https://cloud.google.com/kubernetes-engine/docs/how-to/nvidia-mps-gpus)
* @property maxSharedClientsPerGpu The maximum number of containers that can share a GPU.
*/
public data class ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs(
public val gpuSharingStrategy: Output,
public val maxSharedClientsPerGpu: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs =
com.pulumi.gcp.container.inputs.ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs.builder()
.gpuSharingStrategy(gpuSharingStrategy.applyValue({ args0 -> args0 }))
.maxSharedClientsPerGpu(maxSharedClientsPerGpu.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs].
*/
@PulumiTagMarker
public class ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgsBuilder internal constructor() {
private var gpuSharingStrategy: Output? = null
private var maxSharedClientsPerGpu: Output? = null
/**
* @param value The type of GPU sharing strategy to enable on the GPU node.
* Accepted values are:
* * `"TIME_SHARING"`: Allow multiple containers to have [time-shared](https://cloud.google.com/kubernetes-engine/docs/concepts/timesharing-gpus) access to a single GPU device.
* * `"MPS"`: Enable co-operative multi-process CUDA workloads to run concurrently on a single GPU device with [MPS](https://cloud.google.com/kubernetes-engine/docs/how-to/nvidia-mps-gpus)
*/
@JvmName("iwgcsrvihdnmfgka")
public suspend fun gpuSharingStrategy(`value`: Output) {
this.gpuSharingStrategy = value
}
/**
* @param value The maximum number of containers that can share a GPU.
*/
@JvmName("kbybxohhqpmtboyx")
public suspend fun maxSharedClientsPerGpu(`value`: Output) {
this.maxSharedClientsPerGpu = value
}
/**
* @param value The type of GPU sharing strategy to enable on the GPU node.
* Accepted values are:
* * `"TIME_SHARING"`: Allow multiple containers to have [time-shared](https://cloud.google.com/kubernetes-engine/docs/concepts/timesharing-gpus) access to a single GPU device.
* * `"MPS"`: Enable co-operative multi-process CUDA workloads to run concurrently on a single GPU device with [MPS](https://cloud.google.com/kubernetes-engine/docs/how-to/nvidia-mps-gpus)
*/
@JvmName("swqxedovdtusecfv")
public suspend fun gpuSharingStrategy(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.gpuSharingStrategy = mapped
}
/**
* @param value The maximum number of containers that can share a GPU.
*/
@JvmName("hrfcywyrtnkuddbn")
public suspend fun maxSharedClientsPerGpu(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxSharedClientsPerGpu = mapped
}
internal fun build(): ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs =
ClusterNodeConfigGuestAcceleratorGpuSharingConfigArgs(
gpuSharingStrategy = gpuSharingStrategy ?: throw PulumiNullFieldException("gpuSharingStrategy"),
maxSharedClientsPerGpu = maxSharedClientsPerGpu ?: throw
PulumiNullFieldException("maxSharedClientsPerGpu"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy