diff --git a/plugins/gpu/nvidia_gpu_ b/plugins/gpu/nvidia_gpu_ index 376b833a..1d20f03f 100755 --- a/plugins/gpu/nvidia_gpu_ +++ b/plugins/gpu/nvidia_gpu_ @@ -91,7 +91,7 @@ if [ "$1" = "suggest" ]; then fi # Get number of GPUs -nGpusOutput=$($nvSmiExec -L) +nGpusOutput=$("$nvSmiExec" -L) nGpus=$(echo "$nGpusOutput" | wc -l) if [ "$nGpus" -eq 0 ]; then # Exit if no GPUs found @@ -100,13 +100,13 @@ if [ "$nGpus" -eq 0 ]; then fi # Get full output from nvidia-smi -smiOutput=$($nvSmiExec -q) +smiOutput=$("$nvSmiExec" -q) # Check if config was requested if [ "$1" = "config" ]; then # Get driver version - driverVersion=$(nvidia-smi -q | grep "Driver Version" | cut -d : -f 2 | tr -d ' ') + driverVersion=$(echo "$smiOutput" | grep "Driver Version" | cut -d : -f 2 | tr -d ' ') # Configure graph depending on what which quantity will be plotted case $name in