[Beignet] thread safety and OpenMP
He, Junyan
junyan.he at intel.com
Tue Jun 30 22:28:48 PDT 2015
So far as we know, beignet is thread safe.
Every thead has its own command buffer and do not have
relationship with each others.
Do you use subbuffer to divide the image?
If you can provide some source code or test case, it may
help a lot.
-----Original Message-----
From: Song, Ruiling
Sent: Wednesday, July 01, 2015 10:40 AM
To: Gerald Baier; beignet at lists.freedesktop.org
Cc: He, Junyan
Subject: RE: [Beignet] thread safety and OpenMP
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Gerald Baier
> Sent: Sunday, June 28, 2015 9:56 PM
> To: beignet at lists.freedesktop.org
> Subject: [Beignet] thread safety and OpenMP
>
> I'm using Beignet for image processing, where basically the image is
> subdivided into tiles which are then processed by several threads using
> OpenMP tasks. I noticed that some of the tiles are occasionally messed up. If
Using OpenMP or OpenCL?
Per OpenCL spec, opencl driver should be thread-safe, and Junyan implemented the multi-thread support in beignet. That is to say Beignet is thread-safe.
I am not sure whether Junyan has more comments on how to debug the issue. By the way, if you can provide a test case to reproduce the issue, it would be much helpful.
Thanks!
Ruiling
> I use only one thread everything works fine, also the same program runs as
> expected on nvidia GPUs with multiple threads. Hence the question whether
> Beignet is thread safe and how I could debug my program?
>
> Here's my configuration:
> device name: Intel(R) HD Graphics IvyBridge M GT2 device version: OpenCL
> 1.2 beignet 1.0.3 (git-9e0ca6f)
>
> Best regards,
> Gerald
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list