MCPcopy Create free account
hub / github.com/ROCm/clr / getContextPropertiesString

Function getContextPropertiesString

opencl/tools/cltrace/cltrace.cpp:381–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381static std::string getContextPropertiesString(const cl_context_properties* cprops) {
382 if (cprops == NULL) {
383 return "NULL";
384 }
385
386 std::ostringstream ss;
387 ss << '{';
388 while (*cprops != 0) {
389 ss << getContextPropertyString(cprops[0]) << ',' << getHexString(cprops[1]) << ",";
390 cprops += 2;
391 }
392 ss << "NULL}";
393 return ss.str();
394}
395
396static std::string getCommandQueuePropertyString(cl_command_queue_properties property) {
397 if (property == 0) {

Calls 2

getContextPropertyStringFunction · 0.85
getHexStringFunction · 0.85

Tested by

no test coverage detected