- gpustat
- mysql-connector-python
Adding the script to system crontab, to report GPU statistics every minute.
- Edit
host_name
anddatabase_config
ingpu-statistics.py
- Edit
filepath
inlog_gpustat.sh
- Edit crontab configuration of system with cmd
crontab -e
- In the new edit window, (if you are editting crontab for the first time, system will ask to select the editor), add task with the following text (append to the last line), in which filepath is the same with
log_gpustat.sh
:
*/1 * * * * ${filepath}/gpu-statistics/log_gpustat.sh