Use nvcc compiler

General questions regarding the usage of CodeLite
Ivans
CodeLite Curious
Posts: 2
Joined: Thu Oct 11, 2018 1:49 am
Genuine User: Yes
IDE Question: C++
Contact:

Use nvcc compiler

Postby Ivans » Thu Oct 11, 2018 1:55 am

How can I define that some files must be compiled by nvidia nvcc compiler and not by gcc or clang?
User avatar
eranif
CodeLite Plugin
Posts: 5778
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Use nvcc compiler

Postby eranif » Thu Oct 11, 2018 12:49 pm

You can not change the compiler per file.
You can however, set a new compile line for files with a unique extension.
For example, CodeLite is building .rc files using the resource compiler
This is configurable and can be changed from: settings->build settings->compilers->YOUR COMPILER->Files type tab
Make sure you have read the HOW TO POST thread
Ivans
CodeLite Curious
Posts: 2
Joined: Thu Oct 11, 2018 1:49 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Use nvcc compiler

Postby Ivans » Mon Oct 15, 2018 4:46 pm

Yes,
But there is a compiler type definition in project's settings. So even if I have added 'nvc'c as an additional compiler into codelite global settings, will it use nvcc if it sees *.cu files but project settings says use GCC compiler?

Who is online

Users browsing this forum: No registered users and 16 guests