Results 1 to 4 of 4

Thread: NVIDIA CUDA + Qt

  1. #1
    Join Date
    Jun 2008
    Posts
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb NVIDIA CUDA + Qt

    Hi All!

    I made small program to check if it's possible to integrate NVIDIA CUDA and Qt runtimes in one application.
    http://cuda-z.svn.sourceforge.net/viewvc/cuda-z/trunk/
    Currently this code builds with MS VS2005 + Qt 4.4.0 + NVIDIA CUDA toolkit 1.1 and w/o big problems can be ported to linux/osx.

    Following files can be interesting for you:
    - cuda-z.pro
    - cudainfo.cu
    - cudainfo.h

    You can freely use this code.

    --
    WBR,
    AG

  2. The following 2 users say thank you to redscorp for this useful post:

    jacek (6th August 2008), koral (17th March 2009)

  3. #2
    Join Date
    Jul 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: NVIDIA CUDA + Qt

    Hey hi,
    I am working in Linux. I wanted to ask that for running the above, I need to build the project using QT creator but how will it detect the nvcc then.

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: NVIDIA CUDA + Qt

    Creator runs qmake and make. So all you need to do is to provide a proper .pro file where you will shadow all the required variables. Alternatively you can write your own platform specs but it's more work.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #4
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: NVIDIA CUDA + Qt

    Quote Originally Posted by redscorp View Post
    I made small program to check if it's possible to integrate NVIDIA CUDA and Qt runtimes in one application.
    http://cuda-z.svn.sourceforge.net/viewvc/cuda-z/trunk/
    Currently this code builds with MS VS2005 + Qt 4.4.0 + NVIDIA CUDA toolkit 1.1 and w/o big problems can be ported to linux/osx.
    Thank you redscorp. On my new MacBook Pro from mid 2010, I had to add the option '--machine 64' to the nvcc compiler command line options. I did it by hand, by extracting the nvcc line from the 'make' command output, and adding the option manually.

    How should the architecture be specified properly, from the .pro project file?

Similar Threads

  1. QGLWidget, ATI & NVIDIA
    By pir in forum Qt Programming
    Replies: 3
    Last Post: 12th September 2006, 13:06
  2. QGLWidget with multiple monitors
    By Rayven in forum Qt Programming
    Replies: 3
    Last Post: 4th August 2006, 11:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.