Change arg type to unsigned int from signed int (#1031)

This commit is contained in:
Grzegorz Wawiorko
2020-11-06 12:31:56 +01:00
committed by GitHub
parent 83cc521e17
commit 8fa24b8a72

View File

@@ -888,7 +888,7 @@ std::string CBasicTest<HostAtomicType, HostDataType>::KernelCode(cl_uint maxNumD
else
// global atomics declared in program scope
code += R"(
if(atomic_fetch_add_explicit(&finishedThreads, 1,
if(atomic_fetch_add_explicit(&finishedThreads, 1u,
memory_order_relaxed,
memory_scope_work_group)
== get_global_size(0)-1) // last finished thread