Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Moved] qtcreator and cuda .cu files
Forum Updated to NodeBB v4.3 + New Features

[Moved] qtcreator and cuda .cu files

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 4 Posters 6.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rodeo
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jdbastardy
      wrote on last edited by
      #2

      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.

      http://mattias-cibien.co.cc

      • Prepare for Qt consequences.
      1 Reply Last reply
      0
      • S Offline
        S Offline
        sheetekela81
        wrote on last edited by
        #3

        this link is damaged i guess

        http://doc.trolltech.com/4.7/qmake-environment-reference.html#customizing

        Sincerely yours
        Dr. Sheetekela

        1 Reply Last reply
        0
        • A Offline
          A Offline
          asenzz
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • A asenzz referenced this topic on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved