Skip to content

Instantly share code, notes, and snippets.

@mkrupczak3
Created February 19, 2024 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrupczak3/bed78338095fd2b106d8a6d4ef2ee200 to your computer and use it in GitHub Desktop.
Save mkrupczak3/bed78338095fd2b106d8a6d4ef2ee200 to your computer and use it in GitHub Desktop.
[Unit]
Description=NVIDIA GPU Set Power Limit
After=syslog.target systemd-modules-load.service
ConditionPathExists=/usr/bin/nvidia-smi
[Service]
User=root
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
ExecStart=/usr/local/sbin/nv-power-limit.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment