An Awesome OpenCL Library -

It's not typo. 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. 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#/ It's awesome. And the most awesome part is that 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, 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 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