MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / getPlatformVersion

Function getPlatformVersion

include/CL/opencl.hpp:2032–2040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2030}
2031
2032static 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
2042static cl_uint getDevicePlatformVersion(cl_device_id device)
2043{

Callers 1

getDevicePlatformVersionFunction · 0.85

Calls 3

clGetPlatformInfoFunction · 0.85
getVersionFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected