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

failed to access mmap memory

$
0
0

I am using mmap to share system memory between processes but it seems opencl don't know how to use these memory.

A simple test program attached. If clEnqueueWriteBuffer is using mmaped memory, it will fail. But everything goes fine if using any other memory like aligned_alloc or stack.

Any help is appreciated.

AttachmentSize
Downloadtext/x-c++srcmain.cpp3.91 KB

Viewing all articles
Browse latest Browse all 1182


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