Вопрос

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)

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top