From 8fa24b8a727a5efbcc51f489b7f1e4ed168166ca Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko Date: Fri, 6 Nov 2020 12:31:56 +0100 Subject: [PATCH] Change arg type to unsigned int from signed int (#1031) --- test_conformance/c11_atomics/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_conformance/c11_atomics/common.h b/test_conformance/c11_atomics/common.h index d1219f23..bbcc68c6 100644 --- a/test_conformance/c11_atomics/common.h +++ b/test_conformance/c11_atomics/common.h @@ -1,6 +1,6 @@ // // Copyright (c) 2017 The Khronos Group Inc. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -888,7 +888,7 @@ std::string CBasicTest::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 @@ -1048,7 +1048,7 @@ int CBasicTest::ExecuteSingleTest(cl_device_id dev refValues.resize(threadCount*NumNonAtomicVariablesPerThread()); - // Generate ref data if we have a ref generator provided + // Generate ref data if we have a ref generator provided d = init_genrand(gRandomSeed); startRefValues.resize(threadCount*NumNonAtomicVariablesPerThread()); if(GenerateRefs(threadCount, &startRefValues[0], d))