[Moved] qtcreator and cuda .cu files
-
Hi, hope I'm posting to the right forum :)
I'd like to set up qtcreator projects to compile cu files with NVCC. In general everything works defining a "custom tool" in the pro file, except that I have to omit the cuda files from SOURCES, or gcc tries to compile them as well. That means that they disappear from the "sources" bin, and that I lose all the nice code following features etc. in qtcreator.
I want to have separate sources for NVCC that are still treated as part of the project. Is there any workaround for this? I hope so!
Thanks
Michael
-
http://doc.trolltech.com/4.7/qmake-environment-reference.html#customizing
http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake
Have a check here. You should modify your .pro using these instructions.
-
this link is damaged i guess
http://doc.trolltech.com/4.7/qmake-environment-reference.html#customizing
-
When I try to open CUDA .cu files I'm seeing many errors in my project such are the following:
/home/zarko/repo/tempus/SVRRoot/OnlineSVR/src/oemd_coefficient_search_impl.cu:44: error: In template: no type named 'type' in 'boost::log::sources::aux::inherit_features<boost::log::sources::basic_logger<char, boost::log::sources::severity_logger_mtboost::log::trivial::severity_level, boost::log::sources::multi_thread_modelboost::log::aux::light_rw_mutex>, boost::log::sources::features<boost::log::sources::severityboost::log::trivial::severity_level>>'
/home/zarko/repo/tempus/SVRRoot/OnlineSVR/src/oemd_coefficient_search_impl.cu:44: In instantiation of template class 'boost::log::sources::severity_logger_mtboost::log::trivial::severity_level' requested here
/home/zarko/repo/tempus/SVRRoot/OnlineSVR/src/oemd_coefficient_search_impl.cu:44: error: No viable overloaded '='
/home/zarko/repo/tempus/SVRRoot/OnlineSVR/src/oemd_coefficient_search_impl.cu:44: error: Cast from pointer to smaller type 'boost::format' (aka 'int') loses information
/home/zarko/repo/tempus/SVRRoot/OnlineSVR/src/oemd_coefficient_search_impl.cu:44: error: Invalid operands to binary expression ('boost::format' (aka 'int') and 'thread::id')
/home/zarko/repo/tempus/SVRRoot/OnlineSVR/src/oemd_coefficient_search_impl.cu:298: error: No member named 'open_record' in 'boost::log::sources::severity_logger_mtboost::log::trivial::severity_level'I don't see the errors when opening CPP files. I suspect the wrong GCC version compiler is used when parsing .cu files.
-
A asenzz referenced this topic on