Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Statically link CUDA file in QT creator
Qt 6.11 is out! See what's new in the release blog

Statically link CUDA file in QT creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 394 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.
  • mhsgoudM Offline
    mhsgoudM Offline
    mhsgoud
    wrote on last edited by
    #1

    I am trying to externally link a CUDA code in QT creator. I first compile my CUDA code by: nvcc.exe -lib -o matMul.lib -c matMul.cu

    and then in QT -> Add Library -> External Library -> Static and as include file I choose my matMul.lib

    a few lines are added to .pro file, but then I get this error:
    :-1: error: No rule to make target 'C:/Users/mhsgoud/Documents/test9/../../Desktop/main/CUDA/libmatMuld.a', needed by 'debug/test9.exe'. Stop.

    Any help is appreciated. Best. M

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it, you are trying to use CUDA with a MinGW build of Qt. From the CUDA documentation, they seem support Visual Studio officially.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • mhsgoudM Offline
        mhsgoudM Offline
        mhsgoud
        wrote on last edited by
        #3

        indeed that seems to be the issue. such a disappointment that CUDA does not support MinGW...

        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