| 212 | } |
| 213 | |
| 214 | void prettyPrintCLPlatforms(std::vector< cl_platform_id >& platforms, |
| 215 | std::vector< std::vector< cl_device_id > >& devices) |
| 216 | { |
| 217 | for (unsigned int i = 0; i < platforms.size(); ++i) |
| 218 | { |
| 219 | std::cout << "OpenCL platform [ " << i << " ]:" << std::endl; |
| 220 | prettyPrintPlatformInfo(platforms[i]); |
| 221 | |
| 222 | for (unsigned int n = 0; n < devices[i].size(); ++n) |
| 223 | { |
| 224 | std::cout << "OpenCL platform [ " << i << " ], device [ " << n << " ]:" << std::endl; |
| 225 | prettyPrintDeviceInfo((devices[i])[n]); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | } |
| 230 | |
| 231 | // Verify a failed condition; return true on fail |
| 232 | inline cl_bool OPENCL_V_FAIL( cl_int res ) |
no test coverage detected