| 2030 | } |
| 2031 | |
| 2032 | static cl_uint getPlatformVersion(cl_platform_id platform) |
| 2033 | { |
| 2034 | size_type size = 0; |
| 2035 | clGetPlatformInfo(platform, CL_PLATFORM_VERSION, 0, nullptr, &size); |
| 2036 | |
| 2037 | vector<char> versionInfo(size); |
| 2038 | clGetPlatformInfo(platform, CL_PLATFORM_VERSION, size, versionInfo.data(), &size); |
| 2039 | return getVersion(versionInfo); |
| 2040 | } |
| 2041 | |
| 2042 | static cl_uint getDevicePlatformVersion(cl_device_id device) |
| 2043 | { |
no test coverage detected