Skip to content

Commit 54dd357

Browse files
committed
update: scripts
1 parent a8a6c6f commit 54dd357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/library/ocp_nvidia.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ ocp_nvidia_dashboard_monitor_setup(){
6262
rm dcgm-exporter-dashboard.json
6363
}
6464

65+
ocp_nvidia_get_gpu_count(){
66+
oc get nodes -l nvidia.com/gpu.present=true -o custom-columns='NODE:.metadata.name,NV_GPU:.status.capacity.nvidia\.com/gpu'
67+
}
68+
6569
ocp_nvidia_label_device_plugin_config_machineset(){
6670
MACHINE_SET_NAME=${1:-machineset.machine.openshift.io/g4dn-4xlarge}
6771
DEVICE_CONFIG=${2:-default}

0 commit comments

Comments
 (0)