From 8d0f974a1d041e031f4c5d147cc909e7f1573dc0 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Fri, 14 Jul 2023 17:52:30 -0700 Subject: [PATCH] fix preprocessor guards for getContextPlatformVersion --- include/CL/opencl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index cb6e6883..7d497f14 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -2086,7 +2086,7 @@ struct ReferenceHandler #endif // cl_khr_command_buffer -#if CL_HPP_TARGET_OPENCL_VERSION >= 120 && CL_HPP_MINIMUM_OPENCL_VERSION < 120 +#if CL_HPP_TARGET_OPENCL_VERSION >= 120 && CL_HPP_MINIMUM_OPENCL_VERSION < 200 // Extracts version number with major in the upper 16 bits, minor in the lower 16 static cl_uint getVersion(const vector &versionInfo) { @@ -2136,7 +2136,7 @@ static cl_uint getContextPlatformVersion(cl_context context) clGetContextInfo(context, CL_CONTEXT_DEVICES, size, devices.data(), nullptr); return getDevicePlatformVersion(devices[0]); } -#endif // CL_HPP_TARGET_OPENCL_VERSION >= 120 && CL_HPP_MINIMUM_OPENCL_VERSION < 120 +#endif // CL_HPP_TARGET_OPENCL_VERSION >= 120 && CL_HPP_MINIMUM_OPENCL_VERSION < 200 template class Wrapper