How can I create the project in Eclipse-nsight which use both Intel C++ and CUDA C++?

我与影子孤独终老i 提交于 2019-12-04 06:45:55

问题


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

  • I installed CUDA 5.5 with Eclipse-nsight and Intel Cluster Studio 2013 XE
  • and then I installed plug-ins (ICC toolchain) in the Eclipse-nsight via menu Help-> Install New Software ... https://software.intel.com/en-us/articles/intel-c-compiler-for-linux-using-intel-compilers-with-the-eclipse-ide-pdf

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)


回答1:


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



来源:https://stackoverflow.com/questions/23133335/how-can-i-create-the-project-in-eclipse-nsight-which-use-both-intel-c-and-cuda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!