Farzad
Farzad

Reputation: 3438

Different compilers for different files in one project in Nsight Eclipse Edition

Is it possible to have different compilers for different files in one project in Nsight Eclipse Edition? For instance, is it possible to edit, compile, link, and run the example here in Nsight without having to explicitly use the command line?
The case I'm facing is that I need to use c++11 headers in my cpp file, inside a CUDA project; but nvcc doesn't support it. So while I'm developing it in Nsight, I'd have to use command line to compile, link, and run the project.

Upvotes: 0

Views: 207

Answers (1)

Eugene
Eugene

Reputation: 9474

No, this is not possible for a variety of reasons...

One common solution is to split the project into two - one that produces static library and another that produces an executable and links to the static library. Then you put all your NVCC-compiled CUDA code into either project and C++11 code into another.

Upvotes: 1

Related Questions