Fix test_atomics - wrong HostDataType taken for comparing (#2601)

We see compiler errors on Intel GPU without this fix.
This commit is contained in:
Grzegorz Wawiorko
2026-01-13 18:51:17 +01:00
committed by GitHub
parent b681d4f2c8
commit e076b4a9e9

View File

@@ -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)