输出选择X64
.cu文件属性:
常规-项类型:CUDA C/C++
项目属性:
平台:活动(x64)
CUDA C/C++ - Common-Target Machine Platform: 64-bit (--machine 64)
CUDA C/C++-Device-Code Generation: compute_50,sm_50
CUDA C/C++-Command Line: -Xcompiler "/wd 4819"
链接器-输入-附加依赖项:cudart.lib;
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include<stdio.h>