OpenCL 部署

发布于 2024-11-08 21:04:20 字数 174 浏览 0 评论 0原文

我正在考虑用 c/c++ 编写一个需要在大多数个人计算机上运行的 nbody 风格模拟。本质上是一个 O(n^2) 粒子模拟器。

因为这需要相当用户友好,所以我希望有 1 个 Windows exe 文件,不需要用户安装任何东西。 OpenCL 可以做到这一点吗?有谁知道如何在不编写两个单独的代码的情况下做到这一点?

I am considering writing an nbody style simulation in c/c++ that needs to run on most personal computers. Essentially an O(n^2) particle simulator.

Because this needs to be rather user friendly I was hoping to have 1 Windows exe file that wouldn't require the user to install anything. Is this possible with OpenCL? Does anybody know how to do this without writing two seperate codes?

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

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

发布评论

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

评论(1

荒芜了季节 2024-11-15 21:04:20

用户始终需要为其视频卡安装最新版本的驱动程序。 AMD 用户还需要 AMD APP SDK。我想您可以制作一个安装程序来确定用户的显卡并为其下载正确的驱动程序,但我认为您无法在不进行任何安装的情况下执行此操作。
这需要从您的程序加载驱动程序。我不确定这是否可能,即使可能,您基本上也必须编写自己的驱动程序,这是一项繁重的工作。

简而言之,不。

The user would always need to have the latest version of the driver for their video card installed. AMD users would also need the AMD APP SDK. I guess you could make an installer that determines the users video card and downloads the correct drivers for them, but I don't think you can do this without any installing.
That would require loading the drivers from your program. I'm not sure whether that is possible, and even if it's possible, you would essentially have to write your own driver, which is a lot of work.

So in short, no.

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