Qt Creator(Mac) + CUDA

发布于 2024-10-10 03:24:01 字数 37 浏览 0 评论 0原文

如何在 Mac 上连接:Qt Creator 和 CUDA?

How to connect on a Mac: Qt Creator and CUDA?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风为裳 2024-10-17 03:24:01

我对你的问题有点不确定:

1. 在 CUDA 中实现 Qt Creator 后端的部分?

就我个人而言,我不认为 Qt Creator 通过在后端使用 CUDA 会得到很大的改进(随着可选安装要求的复杂性的增加)。但是,为了回答您的问题,我建议您考虑为创建器中非常具体的计算密集型操作编写插件 - 就像某些插件已为 Gimp 开发 <- 这只是一个示例,还有更多示例 Google 搜索。我预计您不会遇到任何不寻常的 OSX 特定问题 - 但如果您遇到此类问题,请随时发布进一步的问题。

2. Qt图形界面+CUDA进行计算?

如果您想创建一个同时执行一些计算密集型操作的 Qt GUI,那么我建议您进行模块化思考。再次,我建议将计算密集型操作卸载到一个库,然后可以将其“外包”给 CUDA。将 GUI 与 GUI 分开计算(尤其是在线程中)可以使一切变得更加灵敏。一旦您在逻辑上独立的程序/dll/库中进行计算,那么它与 Mac 上的任何其他 CUDA 实现没有什么不同。我建议访问 CUDA 教程网站 &观看视频以帮助您入门。

最后:阅读此博客

我强烈建议阅读这个简单的页面,它直接处理CUDA + Qt + Xcode。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文