OpenCL 部署
我正在考虑用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用户始终需要为其视频卡安装最新版本的驱动程序。 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.