MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / prettyPrintCLPlatforms

Function prettyPrintCLPlatforms

src/client/openCL.misc.cpp:214–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void 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
232inline cl_bool OPENCL_V_FAIL( cl_int res )

Callers 1

_tmainFunction · 0.70

Calls 3

sizeMethod · 0.80
prettyPrintPlatformInfoFunction · 0.70
prettyPrintDeviceInfoFunction · 0.70

Tested by

no test coverage detected