| 1753 | } |
| 1754 | |
| 1755 | static cl_uint getPlatformVersion(cl_platform_id platform) |
| 1756 | { |
| 1757 | ::size_t size = 0; |
| 1758 | clGetPlatformInfo(platform, CL_PLATFORM_VERSION, 0, NULL, &size); |
| 1759 | char *versionInfo = (char *) alloca(size); |
| 1760 | clGetPlatformInfo(platform, CL_PLATFORM_VERSION, size, &versionInfo[0], &size); |
| 1761 | return getVersion(versionInfo); |
| 1762 | } |
| 1763 | |
| 1764 | static cl_uint getDevicePlatformVersion(cl_device_id device) |
| 1765 | { |
no test coverage detected