在vs中配置cuda环境

问题:在vs中配置cuda环境

1:包含头文件路径:(VC++ Directories -> Include Directories )
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0\common\inc

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include

2.需要包含的 lib 路径:(VC++ Directories -> Library Directories )
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64

C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0\common\lib\x64

link->input

cufft.lib
nppial.lib   
nppist.lib  
nvml.lib
cublas.lib
cufftw.lib
nppicc.lib  
nppisu.lib  
nvrtc.lib
cublas_device.lib 
curand.lib	
nppicom.lib 
nppitc.lib  
OpenCL.lib
cuda.lib	
cusolver.lib 
nppidei.lib 
npps.lib
cudadevrt.lib	
cusparse.lib 
nppif.lib   
nvblas.lib
cudart.lib
nppc.lib	
nppig.lib   
nvcuvid.lib
cudart_static.lib  
nppi.lib	
nppim.lib    
nvgraph.lib

为什么要包含 C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0\common\inc 此文件夹呢,因为里面有一些cuda编程错误检查的类,方便编程;

你可能感兴趣的:(cuda相关问题,cuda环境配置,vs中配置cuda,vs+cuda编程)