getting access violation when trying to pass dynamic local memory to kernel

StackOverflow https://stackoverflow.com/questions/23331404

  •  10-07-2023
  •  | 
  •  

Frage

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

https://github.com/OpenCodec/ocldwt

War es hilfreich?

Lösung

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

Workaround is to disable API debugging.

Sorry, bounty-hunters.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top