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

Function getChannelTypeString

opencl/tools/cltrace/cltrace.cpp:576–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576static std::string getChannelTypeString(cl_channel_type type) {
577 switch (type) {
578 CASE(CL_SNORM_INT8);
579 CASE(CL_SNORM_INT16);
580 CASE(CL_UNORM_INT8);
581 CASE(CL_UNORM_INT16);
582 CASE(CL_UNORM_SHORT_565);
583 CASE(CL_UNORM_SHORT_555);
584 CASE(CL_UNORM_INT_101010);
585 CASE(CL_SIGNED_INT8);
586 CASE(CL_SIGNED_INT16);
587 CASE(CL_SIGNED_INT32);
588 CASE(CL_UNSIGNED_INT8);
589 CASE(CL_UNSIGNED_INT16);
590 CASE(CL_UNSIGNED_INT32);
591 CASE(CL_HALF_FLOAT);
592 CASE(CL_FLOAT);
593 default:
594 return getHexString(type);
595 }
596}
597
598static std::string getImageFormatsString(const cl_image_format* format, size_t num_entries) {
599 if (format == NULL) {

Callers 1

getImageFormatsStringFunction · 0.85

Calls 1

getHexStringFunction · 0.85

Tested by

no test coverage detected