An Awesome OpenCL Library - CUDAfy.net
It's not typo. CUDAfy.net is an awesome library for C# programmer to write OpenCL code. As surveying OpenCL libraries, we found a good library for beginners to write OpenCL code. Since John Hu work with a junior programmer who can only program .net framework, we start to survey a tool to for .net programmers. CUDAfy.net is a .net framework library. It is made to translate .net framework bytecode to CUDA and OpenCL. We can use it to generate OpenCL source code from .net framework bytecode. That means you can write a OpenCL program in C#/VB.net. It's awesome. And the most awesome part is that CUDAfy.net is open sourced at here.
Let's see an very simple example. You may find the following code which calcualte the moving average in C#:
After the translation made by CUDAfy.net, it becomes OpenCL code:
You may find they look similar to each other. But the data structure and syntax are slightly different. The later one is real OpenCL code. It's so cool!!!
We believe that CUDAfy.net can fulfill most of the cases. If you really care about performance, it would be nice to write the whole OpenCL code by yourself. But for most of the cases, we would suggest to use CUDAfy.net.