开发者

Integrating CUDA 4.0 into existing VS2008 project

I wrote simple raytracer in C++ and I want to add CUDA to the project. I edited my .vcp开发者_StackOverflow中文版roj manually and added Cudart Build Rule but I can't get it to work. Nvcc is invoked cuda compiles ok, but it seems like host compiler doesn't recognize any of cuda types and kernel syntax.

My cuda version is 4.0 RC2, I can compile and run other CUDA projects.

Please help. Got deadline over my head.


You need to ensure that all your CUDA code is in .cu files such that they are compiled by NVCC, since NVCC understands the CUDA keywords.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜