MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / getPlatformVersion

Function getPlatformVersion

include/internal/CL/cl.hpp:1755–1762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1753}
1754
1755static 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
1764static cl_uint getDevicePlatformVersion(cl_device_id device)
1765{

Callers 1

getDevicePlatformVersionFunction · 0.85

Calls 1

getVersionFunction · 0.85

Tested by

no test coverage detected