Basic setup to limit nvidia gpu power consumption on startup for multi-gpu systems running linux.
- Place the files:
sudo cp gpu-power-limit.sh /usr/local/bin/
sudo cp gpu-power-limit.service /etc/systemd/system/- Make it executable:
chmod +x /usr/local/bin/gpu-power-limit.sh- Adjust ownership:
sudo chown root:root /usr/local/bin/gpu-power-limit.sh
sudo chmod 755 /usr/local/bin/gpu-power-limit.sh
sudo chown root:root /etc/systemd/system/gpu-power-limit.service
sudo chmod 644 /etc/systemd/system/gpu-power-limit.service- Enable and start the service:
sudo systemctl daemon-reload
sudo systemctl enable gpu-power-limit
sudo systemctl start gpu-power-limitMIT License