简体   繁体   English

OpenCL部署

[英]OpenCL Deployment

I am considering writing an nbody style simulation in c/c++ that needs to run on most personal computers. 我正在考虑用c / c ++编写一个nbody风格的仿真程序,该程序需要在大多数个人计算机上运行。 Essentially an O(n^2) particle simulator. 本质上是O(n ^ 2)粒子模拟器。

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. 因为这需要非常用户友好,所以我希望拥有1个Windows exe文件,该文件不需要用户安装任何文件。 Is this possible with OpenCL? OpenCL有可能吗? Does anybody know how to do this without writing two seperate codes? 没有人知道如何在不编写两个单独的代码的情况下执行此操作吗?

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. AMD用户还需要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. 简而言之,不。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM