Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Corrupted cl_mem after soak-test map/unmap from different threads on CL_MEM_ALLOC_HOST_PTR #14

Open
smlehbleh opened this issue Jul 9, 2019 · 0 comments

Comments

@smlehbleh
Copy link

Hi,
I'm developing camera software which gets cam frames in a thread and copies the data into a cl_mem mapped (created with CL_MEM_ALLOC_HOST_PTR).

If I soak test the code, after 2-5 hours, the cl_mem becomes corrupt and doesn't appear to read/write properly anymore. There are no errors generated and kernels appear to run fine - just the cl_mem contents are corrupted.

When I create the cl_mem without CL_MEM_ALLOC_HOST_PTR, there aren’t any issues - the soak test successfully ran indefinately. But this disables zero-copy increasing the latency.

From what I've researched, could there be a cache coherence issue/bug present?

We are using Beignet 1.3.2 - the issue also occurs in 1.3.1.
We can’t try the NEO Compute Runtime at this time as we are utilising the cl_gl sharing feature supported in Beignet to visualise the camera feed - when its supported in NEO we will try that.

Target machine is: Ubuntu 18.04 - Intel NUC i7DNBE

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant