문제

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