Skip to content

Commit

Permalink
[misc][nvidia-pstated] Fix multi-gpu management
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 committed Aug 13, 2024
1 parent 197129e commit 50d2e3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airootfs/etc/udev/rules.d/99-nvidia-pstated.rules
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# NVIDIA Tesla P100 12 GB
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x15f7", ACTION=="add", RUN+="/usr/bin/systemctl start nvidia-pstated.service"
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x15f7", ACTION=="add", RUN+="/usr/bin/systemctl restart nvidia-pstated.service"

# NVIDIA Tesla P100 16 GB
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x15f8", ACTION=="add", RUN+="/usr/bin/systemctl start nvidia-pstated.service"
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x15f8", ACTION=="add", RUN+="/usr/bin/systemctl restart nvidia-pstated.service"

# NVIDIA Tesla P40 24 GB
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x1b38", ACTION=="add", RUN+="/usr/bin/systemctl start nvidia-pstated.service"
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x1b38", ACTION=="add", RUN+="/usr/bin/systemctl restart nvidia-pstated.service"

# NVIDIA Tesla P4 8 GB
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x1bb3", ACTION=="add", RUN+="/usr/bin/systemctl start nvidia-pstated.service"
SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x1bb3", ACTION=="add", RUN+="/usr/bin/systemctl restart nvidia-pstated.service"

0 comments on commit 50d2e3d

Please sign in to comment.