开发者

Can cuda be used combining with activeX technology?

开发者 https://www.devze.com 2023-02-16 14:05 出处:网络
every one. i am a newbie to cuda. i am wondering that can cuda be used combining with ActiveX technology,

every one. i am a newbie to cuda. i am wondering that can cuda be used combining with ActiveX technology, the presented ocx or dll file can be used in webpage, for example, using cuda can we simulate a fluid particle easily. if combine cuda and activeX technology , we can see fluid particle in a webpage, am i right? what's more, if开发者_开发百科 there are problems when i simulate lots of particles? Thank you very much.


I think that if ActiveX could access your GPU on such low level as running your arbitrary CUDA code, it would be a big security risk. If on the other hand, ActiveX could perform some of its computations on the GPU though some higher-level interface, that would be safer, but it is Microsoft who would have to implement it, not you.


A trusted ActiveX control can do anything. So, yes, you could theoretically spin up the CUDA runtime and go to town with the GPU. You would need to distribute the CUDA runtime with the ActiveX control, but everything else you need would already be installed assuming they're using an nVidia GPU. FWIW, distributing cudart.dll is permissable per the EULA on the CUDA Developer Toolkit.

Since, last I read, you cannot statically link against cudart.dll, you would need to distribute that dependency along with your ActiveX control by using a CAB file. Details on creating CAB files can be found here on MSDN. Then again that forum post is from 2008, so maybe newer versions of cudart.dll can be statically linked now... you might want to give it a try.


First and foremost, it runs on the client machine. What means that the client needs to have a CUDA enabled graphics card (nVidia only).

0

精彩评论

暂无评论...
验证码 换一张
取 消