#!/bin/sh # report nvidia hardware information # requires nvidia-smi # nvidia-smi --format=csv --query-gpu=index,gpu_name,driver_version,temperature.gpu,fan.speed,power.draw,pstate,utilization.gpu,memory.total,memory.free,memory.used # index, name, driver_version, temperature.gpu, fan.speed [%], power.draw [W], pstate, utilization.gpu [%], memory.total [MiB], memory.free [MiB], memory.used [MiB] # 0, Quadro M4000, 352.93, 37, 0 %, 41.25 W, P0, 0 %, 8191 MiB, 8172 MiB, 19 MiB nvidiasmi=`which nvidia-smi` if [ $? -eq 0 ] then echo '<<>>' nvidia-smi --format=csv --query-gpu=index,gpu_name,driver_version,temperature.gpu,fan.speed,power.draw,pstate,utilization.gpu,memory.total,memory.free,memory.used fi