Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 1f00949

Browse files
committed
Add PATH for nvidia-smi on wsl2 windows
1 parent 4af5b62 commit 1f00949

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/templates/linux/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
DESTINATION_BINARY_NAME=cortex
33
USER_TO_RUN_AS=${SUDO_USER:-$(whoami)}
44
echo "Download cortex.llamacpp engines by default for user $USER_TO_RUN_AS"
5-
sudo -u $USER_TO_RUN_AS /usr/bin/$DESTINATION_BINARY_NAME engines install cortex.llamacpp
5+
sudo -u $USER_TO_RUN_AS env PATH=$PATH:/usr/lib/wsl/lib /usr/bin/$DESTINATION_BINARY_NAME engines install cortex.llamacpp

engine/templates/linux/postinst_local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
DESTINATION_BINARY_NAME=cortex
33
USER_TO_RUN_AS=${SUDO_USER:-$(whoami)}
44
echo "Download cortex.llamacpp engines by default for user $USER_TO_RUN_AS"
5-
sudo -u $USER_TO_RUN_AS /usr/bin/$DESTINATION_BINARY_NAME engines install cortex.llamacpp -s /tmp/$DESTINATION_BINARY_NAME-dependencies
5+
sudo -u $USER_TO_RUN_AS env PATH=$PATH:/usr/lib/wsl/lib /usr/bin/$DESTINATION_BINARY_NAME engines install cortex.llamacpp -s /tmp/$DESTINATION_BINARY_NAME-dependencies
66
rm -rf /tmp/$DESTINATION_BINARY_NAME-dependencies

0 commit comments

Comments
 (0)