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

@@ -1,6 +1,6 @@
// //
// Copyright (c) 2017 The Khronos Group Inc. // Copyright (c) 2017 The Khronos Group Inc.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
@@ -888,7 +888,7 @@ std::string CBasicTest<HostAtomicType, HostDataType>::KernelCode(cl_uint maxNumD
else else
// global atomics declared in program scope // global atomics declared in program scope
code += R"( code += R"(
if(atomic_fetch_add_explicit(&finishedThreads, 1, if(atomic_fetch_add_explicit(&finishedThreads, 1u,
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
@@ -1048,7 +1048,7 @@ int CBasicTest<HostAtomicType, HostDataType>::ExecuteSingleTest(cl_device_id dev
refValues.resize(threadCount*NumNonAtomicVariablesPerThread()); 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); d = init_genrand(gRandomSeed);
startRefValues.resize(threadCount*NumNonAtomicVariablesPerThread()); startRefValues.resize(threadCount*NumNonAtomicVariablesPerThread());
if(GenerateRefs(threadCount, &startRefValues[0], d)) if(GenerateRefs(threadCount, &startRefValues[0], d))