1,Linux 環境
安裝 ssh-server
$ sudo apt install openssh-server
安裝較新版本的 cuda sdk
下載cuda-samples github repo
編輯修改 ssh 配置:
$ sudo vim /etc/ssh/sshd_config
刪除相關注釋,修改后如下:
Port 22
AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no
Windows
2.1安裝對應版本的 cuda sdk
打開 Nsight Systems
Projet中選擇 ssh,輸入用戶名和密碼。
在Sample target Process中Commang line中輸入程序的絕對路徑
在working directory中輸入目錄
點擊右側的? Start
按鈕即可
待截圖
未完待續,