I
I
ivandzemianchyk2014-10-01 12:00:17
GPGPU
ivandzemianchyk, 2014-10-01 12:00:17

[ CUDA ] How to change compiler to nvcc in CodeBlocks in Ubuntu?

There is a project that works with images on OpenCV and there was a need to write part of it on CUDA. I read on the Internet and roughly found a solution, but I don’t know how to correctly attach the .cu file to the project and change the compiler to nccv in CodeBlocks (before that I tested nvcc compiling simple single-file programs) There is a link on the nvidia
page on how to do this, but I lingered in one place and I can't set it up anymore. The problem is that I don't know how to find the path toNVIDIA_CUDA_SDK2

* Under the Search directories tab, add /your_location/NVIDIA_CUDA_SDK2/common/inc to the Compiler box (so that headers like cutil.h will be found).

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question