Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

crash when setting kernel argument for dynamic local memory

$
0
0

Hello List,

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.

 

Any ideas?

Thanks,

Aaron


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>