The current state of WebCL
How it works
Of the big browsers Internet Explorer, Opera and Chrome/Chromium are currently left out. Chrome/Chromium probably is first to be added to the supported browsers. Opera’s plans are currently unknown and Microsoft doesn’t even have WebGL-plans, so probably we get WebDirectX once. WebCL is seen as dependent on WebGL’s success; Bitcoin is popular, but that will not make the difference. There is more to say on it, as I will discuss below.
Nokia’s WebCL for Firefox (Windows/Linux 32bit)
At http://webcl.nokiaresearch.com/ you can find the actual first implementation of WebCL. The project is still quite active, but no work is being done on getting it to work on other browsers publicly. So for now get an 32 bit Windows/Linux and Firefox if you want to play with it. It seems you need to have Firefox I’ll keep you up-to-date when a new browser or OS is added.
WebCL-branch of Firefox (Windows/Linux)
At http://gfx.parapluie.org/2011/binaries-for-webcl-and-source the GSOC-student, Fabien Cellier, was talking about the progress he made last summer to create a WebCL-plugin for Firefox. This code is part of a special webcl-branch of Firefox nightly: http://hg.mozilla.org/projects/webcl. I did not find any binaries, so here are the build-instructions. Warning: it takes very long to build and actually I did not get this demo working. It seems to work with a bitcoin-demo.
Samsung’s WebCL for Safari (OSX)
The implementation is actually done for Webkit, but the code currently only works with OSX-libaries and Safari. Besides downloading, you can also see an example here. In the readme the few steps are described to build the plugin.
So, well, mmmokay… What can it do?
See for yourself!
- http://granular.cs.umu.se/cheese/ (Nokia)
- http://webcl.nokiaresearch.com/demos.html (Nokia)
- http://gfx.parapluie.org/2011/webcl-and-webgl-interactions-demo (Firefox)
- http://www.ibiblio.org/e-notes/webcl/webcl.htm (Nokia)
Intel RiverTrail (Windows/OSX 32/64)
WebCL and Flash
A good start is using Nokia’s WebCL tutorial. My favourite way of learning is learn-by-stealing: take a demo WebCL-project and put in a kernel you have found in an SDK. If you have clean calculations (thus easy to separate from the rest of the code), you can always make a web-version of your software. If you need help, ask your question on StackOverflow. Follow @fcellier for the Firefox-plugin and @NokiaWebCL for Nokia’s plugin. Most news you will get via StreamComputing and Khronos.