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. Qt Creator, clangd, CMake and CUDA
Forum Updated to NodeBB v4.3 + New Features

Qt Creator, clangd, CMake and CUDA

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 432 Views
  • 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.
  • A Offline
    A Offline
    asenzz
    wrote on last edited by
    #1

    Hi guys, I'm just starting to use Qt Creator the past month even though I knew about it for decades now. I'm moving from CLion and VSCode but faced two issues so far:

    1. When Clangd is busy parsing the project after editing a .cpp file, I'm getting short freezes in QtCreator on Gnome Desktop where a 'Close' and 'Wait' dialog boxes appear and I need to be careful not to click on Close. This is probably due to the main thread waiting for clangd to complete parsing the currently edited source file and in my opinion should be forked in an auxiliary thread that synchronizes with the main thread occasionally. Are there any tweaks I don't know about I should modify in QtCreator?

    2. Qt Creator on a CMake project fails to parse and highlight properly .cu and .cuh files. The CMake is fine and works well with CLion and VSCode (with small interventions in .clangd) but I am not able to get proper code error detection working in .cu files.
      How do I make clangd on QyCreator work well with CUDA files in a CMake project, which otherwise works fine?

    Thanks,
    Z

    cristian-adamC 1 Reply Last reply
    0
    • A asenzz

      Hi guys, I'm just starting to use Qt Creator the past month even though I knew about it for decades now. I'm moving from CLion and VSCode but faced two issues so far:

      1. When Clangd is busy parsing the project after editing a .cpp file, I'm getting short freezes in QtCreator on Gnome Desktop where a 'Close' and 'Wait' dialog boxes appear and I need to be careful not to click on Close. This is probably due to the main thread waiting for clangd to complete parsing the currently edited source file and in my opinion should be forked in an auxiliary thread that synchronizes with the main thread occasionally. Are there any tweaks I don't know about I should modify in QtCreator?

      2. Qt Creator on a CMake project fails to parse and highlight properly .cu and .cuh files. The CMake is fine and works well with CLion and VSCode (with small interventions in .clangd) but I am not able to get proper code error detection working in .cu files.
        How do I make clangd on QyCreator work well with CUDA files in a CMake project, which otherwise works fine?

      Thanks,
      Z

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      @asenzz I have https://bugreports.qt.io/browse/QTCREATORBUG-28861 opened.

      Can you provide a small project that highlights the issue? Either comment on that bug or here.

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

        The project I'm using QtCreator with is Tempus https://github.com/asenzz/tempus-core and any of the cu files located in SVRRoot/OnlineSVR/src/*.cu are giving me the errors as described here https://forum.qt.io/topic/3042/moved-qtcreator-and-cuda-cu-files/4

        1 Reply Last reply
        0

        • Login

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