[Qt-interest] QTCreator + CUDA seems to crash my program
Cole, Derek
dcole at integrity-apps.com
Fri Jan 28 04:13:55 CET 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110127/341c05aa/attachment.html
More information about the Qt-interest-old
mailing list