CL_PLATFORM_VENDOR should be CL_PLATFORM_NAME.

This commit is contained in:
peng xiao 2013-05-08 17:19:34 +08:00
parent bb4b410512
commit 861de8a6e9

View File

@ -318,7 +318,7 @@ namespace cv
openCLSafeCall(clGetDeviceIDs(platforms[i], devicetype, numsdev, &devices[0], 0)); openCLSafeCall(clGetDeviceIDs(platforms[i], devicetype, numsdev, &devices[0], 0));
Info ocltmpinfo; Info ocltmpinfo;
openCLSafeCall(clGetPlatformInfo(platforms[i], CL_PLATFORM_VENDOR, sizeof(plfmName), plfmName, NULL)); openCLSafeCall(clGetPlatformInfo(platforms[i], CL_PLATFORM_NAME, sizeof(plfmName), plfmName, NULL));
ocltmpinfo.PlatformName = String(plfmName); ocltmpinfo.PlatformName = String(plfmName);
ocltmpinfo.impl->platName = String(plfmName); ocltmpinfo.impl->platName = String(plfmName);
ocltmpinfo.impl->oclplatform = platforms[i]; ocltmpinfo.impl->oclplatform = platforms[i];