Turns out this is a bug in the Intel 2014 Beta OpenCL SDK.
Workaround is to disable API debugging.
Sorry, bounty-hunters.
Question
I would like to dynamically allocate local memory for my kernel:
error_code = clSetKernelArg(myKernel, 2, localMemSize, NULL);
This call will trigger an access violation on windows 7, Visual Studio 2012, using Intel OpenCL SDK 2014 Beta.
Am I doing something wrong?
[Edit] here is my project on github
Solution
Turns out this is a bug in the Intel 2014 Beta OpenCL SDK.
Workaround is to disable API debugging.
Sorry, bounty-hunters.