Obtaining access rights when trying to transfer dynamic local memory to the kernel

I would like to dynamically allocate local memory for my kernel:

error_code = clSetKernelArg(myKernel, 2, localMemSize, NULL);

This call will cause windows access violation 7, Visual Studio 2012, using the beta version of the Intel OpenCL SDK 2014.

Am I doing something wrong?

[Edit] here is my github project

https://github.com/OpenCodec/ocldwt

+4
source share
1 answer

Turns out this is a bug in the Intel 2014 Beta OpenCL SDK.

The workaround is to disable the debugging API.

Sorry, bounty hunters.

+3
source

Source: https://habr.com/ru/post/1538335/


All Articles