I am trying to pass dynamically allocated local memory to my kernel.
So, I am using the line
clSetKernelArg(myKernel, 2, localMemSize, NULL);
where argument two in the kernel is prefixed by local.
When I run this (windows 7, visual studio 2012), I get an exception:
Unhandled exception at 0x51AFF594 (IntelOpenCLProfiler.dll) in ocldwt.exe: 0xC0000005: Access violation reading location 0x00000000.