开发者

Qt Creator(Mac) + CUDA

开发者 https://www.devze.com 2023-02-02 23:27 出处:网络
How to connect on a Mac: Q开发者_如何学Got Creator and CUDA?I\'m a little uncertain of your question:

How to connect on a Mac: Q开发者_如何学Got Creator and CUDA?


I'm a little uncertain of your question:

1. Implement portions of Qt Creator backend in CUDA?

Personally, I don't think that Qt Creator would be greatly improved (with the added complexity of optional installation requirements) by using CUDA in it's backend. However, to answer your question, I would suggest that you think about writing plugins for very specific computationally intensive operations in the creator -- much like some of the plugins have been developed for Gimp <- That's just an example, there are several more via Google search. I don't forsee any unusual OSX specific issue which you would encounter -- but feel free to post further questions if you hit such things.

2. Qt Graphical Interface + CUDA for Computation?

If you want to create a Qt GUI which also performs some computationally intensive operations, then I would suggest that you think modularly. Again, I would suggest offloading the computationally intensive operation to a library which can then be 'farmed out' to CUDA. Separating your GUI & computation (especially in threads) can make everything much more responsive. And once you have your computation in a logically separate program/dll/library, then it is no different from any other CUDA implementation on a Mac. I would recommend going to the CUDA tutorials website & watching the videos to get you started.

Lastly: Read this blog

I would strongly suggest reading through this simple page which deals directly with CUDA + Qt + Xcode.

0

精彩评论

暂无评论...
验证码 换一张
取 消