All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.container.kotlin.outputs.ClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 ClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig(
    public val gpuSharingStrategy: String,
    public val maxSharedClientsPerGpu: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig): ClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig =
            ClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig(
                gpuSharingStrategy = javaType.gpuSharingStrategy(),
                maxSharedClientsPerGpu = javaType.maxSharedClientsPerGpu(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy