Skip to content

Commit 00bd9af

Browse files
committed
Fix nvidia-smi
1 parent 4b3d306 commit 00bd9af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zsh/custom/utils.zsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ replacerec() {
8484
fi
8585
}
8686

87+
function nvidia-smi {
88+
# https://forums.developer.nvidia.com/t/nvidia-smi-uses-all-of-ram-and-swap/295639/3
89+
valgrind nvidia-smi "$@" 2> /dev/null
90+
}
91+
8792
# Chats
8893
start-chats() {
8994
# Start chat clients

0 commit comments

Comments
 (0)