mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix test_atomics - wrong HostDataType taken for comparing (#2601)
We see compiler errors on Intel GPU without this fix.
This commit is contained in:
committed by
GitHub
parent
b681d4f2c8
commit
e076b4a9e9
@@ -1371,7 +1371,7 @@ public:
|
|||||||
int ExecuteSingleTest(cl_device_id deviceID, cl_context context,
|
int ExecuteSingleTest(cl_device_id deviceID, cl_context context,
|
||||||
cl_command_queue queue) override
|
cl_command_queue queue) override
|
||||||
{
|
{
|
||||||
if constexpr (std::is_same_v<HostDataType, HOST_ATOMIC_HALF>)
|
if constexpr (std::is_same_v<HostDataType, HOST_HALF>)
|
||||||
{
|
{
|
||||||
if (LocalMemory()
|
if (LocalMemory()
|
||||||
&& (gHalfAtomicCaps & CL_DEVICE_LOCAL_FP_ATOMIC_ADD_EXT) == 0)
|
&& (gHalfAtomicCaps & CL_DEVICE_LOCAL_FP_ATOMIC_ADD_EXT) == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user