Common questions #3
Replies: 2 comments
-
Thanks for the clarifications. I understood that OpelCL work with arrays of integers, floats and doubles. I work mostly with long and longlong, does it handle them too? and what kind of operations does it accelerate? |
Beta Was this translation helpful? Give feedback.
-
So, "Long" in VBA represents "int" in C, "int64" (Longlong type in VBA) I have not implemented because it is not supproted in 32 bit Excel (but you can simply use double if you need longlong). |
Beta Was this translation helpful? Give feedback.
-
@6DiegoDiego9, I mean that VBA+OpenCL performance on CPU (divided by number of CPU threads) was twice better than native C# performance (no OpenCL, single thread). For example, OpenCL gives me 8x better performance in 4 threads than native C# in a single thread on the same task. Therefore, OpenCL is twice as fast as native C# in one thread. Of course, C# compiles to CIL and OpenCL CPU/GPU driver compiles to optimized native code, but the two times difference is pretty amazing.
ClooWrapperVba is definitely not a complex library. It can set input values and arrays of integers, floats and doubles and read the outputs (arrays only), compile and run OpenCL sources (C99) and get some configuration values of available CPUs/GPUs. In this case, VBA is just a host and has nothing to do with OpenCL code that you will run, VBA only gets the results of calculations.
If you can convert your code to OpenCL (C99), you'll have a much faster version than anything you've used before.
Thank you for the link to TwinBASIC. I'll try it.
BTW I have very limited number of answers from other users and I want to know if all the CPU/GPU devices you are using have been detected?
Beta Was this translation helpful? Give feedback.
All reactions