Qt have released a nice wrapper for Opencl ( QtOpencl ) which does a very good job of hiding a lot of boiler plate and making OpenCL play nicely with Qt's display widget and Opengl.
But there are a few things that I can do better in Cuda than OpenCL and the Cuda tools are much more mature.
It's relatively easy to make a simple Cuda C++ wrapper and integrate into the Qt build process but I wondered if anybody had done anything more? Ideally an equivalent QtCuda library.
The Qt people aren't interested in Cuda support because it's not cross platform enough
edit: Just for search, there is a Qt CUDA wrapper for openGL PBO. It's based on the Dr Dobbs simplePBO example. There are a couple of bugs fixes needed to make it play nicely with Cuda4 but it's a good start.
ps there is no way to contact the author of the blog and comments don't work - if he finds this let me know and i will send the fixes.
The way I did it was to build a DLL in Visual Studio, warped CUDA Function call among normal C exported functions. They used LoadLibrary
and GetProcAddress
from QT IDE. All in all, it worked quite well.
The Qt people aren't interested in Cuda support because it's not cross platform enough
Exactly. If you want to ignore this, you don't understand Qt's philosophy. And why create even more legacy-code, while it's easy to translate your existing kernels to OpenCL with MultiscaleLab Swan?
But the source of the library is free to download and used as a base.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With