mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
The compiler tries to compile the same source multiple times and more importantly write out to the same filename. Adding a lock to prevent simultaneous compilation solves this issue. This is particularly noticeable in integer_ops testing when using offline compilation, but just in case, hold the lock for the entire program creation. Signed-off-by: Mats Petersson <mats.petersson@arm.com> Signed-off-by: Stuart Brady <stuart.brady@arm.com>