> Am 18.12.2014 um 19:55 schrieb Karl Czajkowski <[email protected]>:
> 
> On Dec 18, Gregor Thalhammer modulated:
> 
>> del src_tmp
>> after writing to the mapped buffer? This should unmap the buffer.
>> 
> 
> Ah, that seems to fix it!  Is this expected behavior, that writes to a
> mapping may be buffered until it is unmapped?
> 
Yes, the specs require that a buffer gets unmapped before accessed by a kernel, 
otherwise the behaviour is undefined. It is left up to the OpenCL 
implementation whether it provides direct or buffered access for mapped memory.

Gregor


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to