We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 718fa02 commit 35728b6Copy full SHA for 35728b6
conf/hooks/extra/50-mig-config.sh
@@ -19,7 +19,7 @@ shopt -s lastpipe
19
20
source "${ENROOT_LIBRARY_PATH}/common.sh"
21
22
-common::checkcmd grep nvidia-smi
+common::checkcmd grep
23
24
tac "${ENROOT_ENVIRON}" | grep "^NVIDIA_" | while IFS='=' read -r key value; do
25
[ -v "${key}" ] || export "${key}=${value}"
@@ -32,6 +32,8 @@ if [[ "${NVIDIA_VISIBLE_DEVICES}" =~ "MIG-" ]] || [[ "${NVIDIA_VISIBLE_DEVICES}"
32
exit 0
33
fi
34
35
+common::checkcmd nvidia-smi
36
+
37
nvsmi_args=("--query-gpu=mig.mode.current" "--format=csv,noheader")
38
39
if [ "${NVIDIA_VISIBLE_DEVICES}" != "all" ]; then
0 commit comments