简体   繁体   English

如何在同时使用Intel C ++和CUDA C ++的Eclipse-nsight中创建项目?

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

I want to use ICC (Intel C++ Compiler) with CUDA NVCC (nVidia C++ Compiler) on Linux in the Eclipse-nsight. 我想在Eclipse-nsight的Linux上使用ICC(英特尔C ++编译器)和CUDA NVCC(nVidia C ++编译器)。

Now I can create Intel C++ project or CUDA C++ project. 现在,我可以创建英特尔C ++项目或CUDA C ++项目。 But how can I create the project which can contain at the same time both. 但是,如何创建可以同时包含两者的项目。 Cpp-files and. Cpp文件和。 Cu-file, and which automatic compile Cpp-files by using ICC and Cu-file by using NVCC? 铜文件,使用ICC自动编译Cpp文件和使用NVCC自动编译Cpp文件?

Which project should I create: Intel C++ or CUDA C++, and what should I do then? 我应该创建哪个项目:Intel C ++或CUDA C ++,然后该怎么办?

(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) (或者可能有人知道我该如何在同时使用GCC和ICC的Eclipse-nsight中创建项目,这将对我有所帮助)

在CUDA项目属性中,指定ccbin NVCC命令行标志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM