From 312603beef038ea7795e59cb785f31ece25cd651 Mon Sep 17 00:00:00 2001 From: joselope Date: Wed, 3 Jun 2026 10:55:35 +0100 Subject: [PATCH] Fix build program errors for half type kernels --- test_conformance/workgroups/test_wg_scan_reduce.cpp | 1 + 1 file changed, 1 insertion(+) 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";