问题描述
我想在Eclipse中使用CUDA NVCC(nVidia C ++编译器)在Linux上使用ICC(Intel C ++编译器)。
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
现在我可以创建Intel C ++项目或CUDA C ++项目。但是如何创建可以同时包含两者的项目。 Cpp文件和。
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?
我应该创建哪个项目:Intel C ++或CUDA C ++,以及使用ICC和Cu-file通过NVCC自动编译Cpp文件?我应该怎么办?
Which project should I create: Intel C++ or CUDA C++, and what should I do then?
(或者可能有人知道如何在Eclipse-nsight中创建使用GCC和ICC的项目,这将有助于我)
(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)
推荐答案
在CUDA项目属性中,指定ccbin NVCC命令行标志。
In CUDA project properties, specify the ccbin NVCC command line flag.
这篇关于如何在Eclipse-nsight中创建使用Intel C ++和CUDA C ++的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!