}
cl_platform_id platform = platforms[found];
- std::string platformName = PlatformInfo(platform).name();
+ std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try
}
cl_platform_id platform = platforms[found];
- std::string platformName = PlatformInfo(platform).name();
+ std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try
}
cl_platform_id platform = platforms[found];
- std::string platformName = PlatformInfo(platform).name();
+ std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try
}
cl_platform_id platform = platforms[found];
- std::string platformName = PlatformInfo(platform).name();
+ std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try
cl_context context = (cl_context)_context;
cl_device_id deviceID = (cl_device_id)_device;
- std::string platformName = PlatformInfo(platformID).name();
+ std::string platformName = PlatformInfo(&platformID).name();
auto clExecCtx = OpenCLExecutionContext::create(platformName, platformID, context, deviceID);
CV_Assert(!clExecCtx.empty());
CV_Error(cv::Error::OpenCLInitError, "OpenCL: Can't create context for OpenGL interop");
cl_platform_id platform = platforms[found];
- std::string platformName = PlatformInfo(platform).name();
+ std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx = OpenCLExecutionContext::create(platformName, platform, context, device);
clReleaseDevice(device);
contextInitialized = true;
cl_platform_id platform = platforms[found];
- char platformName[1024] = {0};
- size_t sz = 0;
- if (clGetPlatformInfo(platform, CL_PLATFORM_NAME, sizeof(platformName) - 16, platformName, &sz) != CL_SUCCESS
- || sz >= sizeof(platformName))
- {
- CV_Error(cv::Error::OpenCLInitError, "OpenCL: Failed to get platform name");
- }
+ std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try