Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not found nvidia-smi after login via SSH #8794

Closed
1 of 2 tasks
DefTruth opened this issue Sep 4, 2022 · 1 comment
Closed
1 of 2 tasks

Can not found nvidia-smi after login via SSH #8794

DefTruth opened this issue Sep 4, 2022 · 1 comment

Comments

@DefTruth
Copy link

DefTruth commented Sep 4, 2022

Version

Microsoft Windows [版本 10.0.22000.318]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16

Distro Version

Ubuntu 20.04

Other Software

SSH

Repro Steps

PS C:\Users\XXXX> ssh qiuyanjun@XXXX -p 2233
qiuyanjun@XXXX's password:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sun Sep  4 14:38:18 CST 2022

  System load:  0.0                 Processes:             10
  Usage of /:   12.5% of 250.98GB   Users logged in:       0
  Memory usage: 1%                  IPv4 address for eth0: 172.28.30.162
  Swap usage:   0%


41 updates can be applied immediately.
8 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

New release '22.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Sun Sep  4 14:24:12 2022 from 172.28.16.1
(base) ➜  ~ nvidia-smi
zsh: command not found: nvidia-smi

Expected Behavior

Should successfully find the nvidia-smi after login via SSH! like (login via Windows Terminal):

(base) ➜  ~ nvidia-smi
Sun Sep  4 14:27:27 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 516.94       CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0  On |                  N/A |
| N/A   41C    P8    13W /  N/A |   1690MiB / 16384MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Actual Behavior

Error: command not found: nvidia-smi

(base) ➜  ~ nvidia-smi
zsh: command not found: nvidia-smi

Diagnostic Logs

No response

@DefTruth
Copy link
Author

DefTruth commented Sep 4, 2022

I fixed this error by add /usr/lib/wsl/lib into PATH, the /usr/lib/wsl/lib can be found but it's path does not appear in PATH env after login via SSH from local or remote device (e.g another Mac PC).

export PATH=/usr/lib/wsl/lib:$PATH

@DefTruth DefTruth closed this as completed Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant