diff --git a/test_conformance/workgroups/test_wg_scan_reduce.cpp b/test_conformance/workgroups/test_wg_scan_reduce.cpp index d7dd291499..c5a838c14a 100644 --- a/test_conformance/workgroups/test_wg_scan_reduce.cpp +++ b/test_conformance/workgroups/test_wg_scan_reduce.cpp @@ -36,6 +36,7 @@ static std::string make_kernel_string(const std::string &type, // } std::ostringstream os; + if (type == "half") os << "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n"; os << "__kernel void " << kernelName << "(global " << type << " *input, global " << type << " *output) {\n"; os << " int tid = get_global_id(0);\n";