mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix kernel compilation issue in c11 atomics. (#973)
This commit is contained in:
@@ -883,7 +883,8 @@ std::string CBasicTest<HostAtomicType, HostDataType>::KernelCode(cl_uint maxNumD
|
|||||||
if(atomic_fetch_add_explicit(&finishedThreads, 1,
|
if(atomic_fetch_add_explicit(&finishedThreads, 1,
|
||||||
memory_order_relaxed,
|
memory_order_relaxed,
|
||||||
memory_scope_work_group)
|
memory_scope_work_group)
|
||||||
== get_global_size(0)-1) // last finished thread)";
|
== get_global_size(0)-1) // last finished thread
|
||||||
|
)";
|
||||||
code +=
|
code +=
|
||||||
" for(uint dstItemIdx = 0; dstItemIdx < numDestItems; dstItemIdx++)\n";
|
" for(uint dstItemIdx = 0; dstItemIdx < numDestItems; dstItemIdx++)\n";
|
||||||
if(aTypeName == "atomic_flag")
|
if(aTypeName == "atomic_flag")
|
||||||
|
|||||||
Reference in New Issue
Block a user