diff --git a/test_conformance/c11_atomics/common.h b/test_conformance/c11_atomics/common.h index 42fe32b6..5bb9e5b7 100644 --- a/test_conformance/c11_atomics/common.h +++ b/test_conformance/c11_atomics/common.h @@ -1360,8 +1360,10 @@ int CBasicTest::ExecuteSingleTest( { error = clSetKernelArg(kernel, argInd++, - LocalRefValues() ? typeSize * CurrentGroupSize() - * NumNonAtomicVariablesPerThread() + LocalRefValues() ? typeSize + * ((CurrentGroupSize() + * NumNonAtomicVariablesPerThread()) + + 4) : 1, NULL); test_error(error, "Unable to set indexed kernel argument");