| 107 | |
| 108 | |
| 109 | const char *get_mem_flag_name(cl_mem_flags flags) |
| 110 | { |
| 111 | switch (flags) |
| 112 | { |
| 113 | case CL_MEM_READ_WRITE: return "CL_MEM_READ_WRITE"; |
| 114 | case CL_MEM_WRITE_ONLY: return "CL_MEM_WRITE_ONLY"; |
| 115 | default: return "Unsupported cl_mem_flags value"; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | template <typename T> |
| 120 | static int |