Xshell+Winscp+Visual Studio简略使用方法
1.使用步骤
-
连接Xshell与Winscp,登陆Winscp时将文件协议改为scp
-
在Winscp服务器文件夹下右键新建目录,以后文件都上传到这个文件夹中
-
新建记事本,复制以下程序,命名为helloworld,同时更改文件类型为
.cu
#include <stdio.h>
const int N = 16;
const int blocksize = 16;
__global__ void hello(char *a, int *b)
{
a[threadIdx.x] += b[threadIdx.x];
}
int main