Skip to main content

vw_gpu_capacity

Creates, updates, deletes, gets or lists a vw_gpu_capacity resource.

Overview​

Namevw_gpu_capacity
TypeView
Idnvidia.nvcf_deployments.vw_gpu_capacity

Fields​

The following fields are returned by this view:

NameDatatypeDescription
cluster_groupstringCluster group name (the backend named in a deployment specification).
cluster_group_idstringCluster group id.
gpustringGPU type available in the cluster group (for example L40
instance_typestringInstance type name for the GPU (the instanceType of a deployment specification).
instance_descriptionstringVendor description of the instance type.
is_defaultbooleanWhether the instance type is the default for the GPU.
clusterstringName of the first cluster in the group.
nca_idstringNVIDIA Cloud Account that owns the cluster group.

SELECT Examples​

SELECT
cluster_group,
cluster_group_id,
gpu,
instance_type,
instance_description,
is_default,
cluster,
nca_id
FROM nvidia.nvcf_deployments.vw_gpu_capacity;

SQL Definition​

SELECT cg.name AS cluster_group,
cg.id AS cluster_group_id,
json_extract(g.value, '$.name') AS gpu,
json_extract(it.value, '$.name') AS instance_type,
json_extract(it.value, '$.description') AS instance_description,
json_extract(it.value, '$.default') AS is_default,
json_extract(cg.clusters, '$[0].name') AS cluster,
cg.nca_id
FROM nvidia.nvcf_deployments.cluster_groups cg,
json_each(cg.gpus) g,
json_each(json_extract(g.value, '$.instanceTypes')) it