Question

I want to use ICC (Intel C++ Compiler) with CUDA NVCC (nVidia C++ Compiler) on Linux in the Eclipse-nsight.

Now I can create Intel C++ project or CUDA C++ project. But how can I create the project which can contain at the same time both. Cpp-files and. Cu-file, and which automatic compile Cpp-files by using ICC and Cu-file by using NVCC?

Which project should I create: Intel C++ or CUDA C++, and what should I do then?

(Or may be someone known how can I create the project in Eclipse-nsight which use both GCC and ICC, and it will help me)

Was it helpful?

Solution

In CUDA project properties, specify the ccbin NVCC command line flag.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top