Skip to content

Commit

Permalink
fix preprocessor guards for getContextPlatformVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Jul 15, 2023
1 parent b8b3056 commit 8d0f974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/CL/opencl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,7 @@ struct ReferenceHandler<cl_mutable_command_khr>
#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<char> &versionInfo)
{
Expand Down Expand Up @@ -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 <typename T>
class Wrapper
Expand Down

0 comments on commit 8d0f974

Please sign in to comment.