I am considering writing an nbody style simulation in c/c++ that needs to run on most personal computers. Ess开发者_运维知识库entially 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?
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.
精彩评论