[Qt-interest] QTCreator + CUDA seems to crash my program
Cole, Derek
dcole at integrity-apps.com
Fri Jan 28 15:20:09 CET 2011
I will give it a look, but I know I did a clean in QTCreator. I then rebuilt my library and added a junk line like "int temp = 0;" and it moved the line number to the one below it, which was the original source it pointed to.
I will try again and manually delete all the object files and such just to make sure
Derek
-----Original Message-----
From: qt-interest-bounces+dcole=integrity-apps.com at qt.nokia.com on behalf of Tony Rietwyk
Sent: Fri 1/28/2011 2:15 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] QTCreator + CUDA seems to crash my program
Hi Derek,
Sounds like you haven't rebuilt everything after changing the define? Or a
similar compiler/linker mixup. (The line numbers compiled into the .obj
files no longer match the source code).
Hope that helps,
Tony
-----Original Message-----
From: qt-interest-bounces+tony.rietwyk=rightsoft.com.au at qt.nokia.com
[mailto:qt-interest-bounces+tony.rietwyk=rightsoft.com.au at qt.nokia.com] On
Behalf Of Cole, Derek
Sent: Friday, 28 January 2011 14:14
To: Cole, Derek; qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] QTCreator + CUDA seems to crash my program
Actually, this is weird. I re-compiled my library in debug mode so I could
get al ittle bit of info.
I do compile it with a flag -DUSING_CUDA just so I can keep the code
separated. This is what I have done in this version that is crashing.
However, I have two different methods with different names that essentially
do the same thing.
one is defined:
#ifdef USING_CUDA
bool cSicdReader::getDataCu(cuComplex *buffer, offset rowNum)
{.....
#endif
and the next is
bool cSicdReader::getData(complex<float> *buffer, offset rowNum)
{...
so the weird part is, in debug mode, it shows my code crashing on this line
of my QT project:
reader->getData(pixelData, imageRow);
but in my library, it is stopped on a line within the getDataCu function!
-----Original Message-----
From: qt-interest-bounces+dcole=integrity-apps.com at qt.nokia.com on behalf of
Cole, Derek
Sent: Thu 1/27/2011 10:07 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] QTCreator + CUDA seems to crash my program
Hello all,
I have a library that I have been using for a while within my QTCreator
project. Recently, I developed some CUDA methods that one of those library
functions can call if the library was compiled with -DUSING_CUDA. The whole
library is archived into a .a file
I am trying to continue using that library, however, now my QTCreator
project crashes. I was able to get it to compile by adding the cuda shared
libraries to the LIBs in the makefile generated by QTCreator, so that was
the first hurdle.
Now, however, whenever I call some functions in that library (unrelated to
the CUDA stuff), my program crashes and says it has unexpectedly finished.
Is there something I dont know about using libraries that have CUDA
components linked into them from QT? When I build out a driver to test the
functionality of my library with the CUDA functions, it runs fine, and
doesnt crash.
Thanks
Derek
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1435/3406 - Release Date: 01/27/11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110128/56146d6a/attachment.html
More information about the Qt-interest-old
mailing list