mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
c11_atomics: Reduce the loopcounter for sequential consistency tests (#1853)
Reduce the loop from 1000000 to 500000 since the former value makes the test run too long and cause system issues on certain platforms
This commit is contained in:
committed by
GitHub
parent
352e707836
commit
c8ebba8699
@@ -2827,7 +2827,7 @@ public:
|
|||||||
// value from other thread
|
// value from other thread
|
||||||
// - reads value from other thread's variable
|
// - reads value from other thread's variable
|
||||||
// - repeats the above steps when both values are the same (and less
|
// - repeats the above steps when both values are the same (and less
|
||||||
// than 1000000)
|
// than 500000)
|
||||||
// - stores the last value read from other thread (in additional
|
// - stores the last value read from other thread (in additional
|
||||||
// variable) At the end of execution at least one thread should know
|
// variable) At the end of execution at least one thread should know
|
||||||
// the last value from other thread
|
// the last value from other thread
|
||||||
@@ -2846,7 +2846,7 @@ public:
|
|||||||
"memory_order_relaxed"
|
"memory_order_relaxed"
|
||||||
+ MemoryScopeStr()
|
+ MemoryScopeStr()
|
||||||
+ ");\n"
|
+ ");\n"
|
||||||
" } while(myValue == hisValue && myValue < 1000000);\n"
|
" } while(myValue == hisValue && myValue < 500000);\n"
|
||||||
" "
|
" "
|
||||||
+ nonAtomic + "[myId] = hisValue; \n";
|
+ nonAtomic + "[myId] = hisValue; \n";
|
||||||
}
|
}
|
||||||
@@ -2972,7 +2972,7 @@ public:
|
|||||||
host_atomic_thread_fence(MemoryOrder());
|
host_atomic_thread_fence(MemoryOrder());
|
||||||
hisValue = host_atomic_load<HostAtomicType, HostDataType>(
|
hisValue = host_atomic_load<HostAtomicType, HostDataType>(
|
||||||
&destMemory[hisId], MEMORY_ORDER_RELAXED);
|
&destMemory[hisId], MEMORY_ORDER_RELAXED);
|
||||||
} while (myValue == hisValue && hisValue < 1000000);
|
} while (myValue == hisValue && hisValue < 500000);
|
||||||
oldValues[tid] = hisValue;
|
oldValues[tid] = hisValue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -3053,11 +3053,11 @@ public:
|
|||||||
if (myValue == hisValue)
|
if (myValue == hisValue)
|
||||||
{
|
{
|
||||||
// a draw - both threads should reach final value
|
// a draw - both threads should reach final value
|
||||||
// 1000000
|
// 500000
|
||||||
if (myValue != 1000000)
|
if (myValue != 500000)
|
||||||
{
|
{
|
||||||
log_error("ERROR: Invalid reference value #%u (%d "
|
log_error("ERROR: Invalid reference value #%u (%d "
|
||||||
"instead of 1000000)\n",
|
"instead of 500000)\n",
|
||||||
workOffset + i, myValue);
|
workOffset + i, myValue);
|
||||||
correct = false;
|
correct = false;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user