| 379 | } |
| 380 | |
| 381 | static 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 | |
| 396 | static std::string getCommandQueuePropertyString(cl_command_queue_properties property) { |
| 397 | if (property == 0) { |
no test coverage detected