CL_PLATFORM_VENDOR should be CL_PLATFORM_NAME.

pull/848/head
peng xiao 12 years ago
parent bb4b410512
commit 861de8a6e9
  1. 2
      modules/ocl/src/initialization.cpp

@ -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];

Loading…
Cancel
Save