| 216 | } |
| 217 | |
| 218 | static CMP_Compute_type EncodeWith(const char* strParameter) |
| 219 | { |
| 220 | if (strcmp(strParameter, "CPU") == 0) |
| 221 | return CMP_CPU; |
| 222 | else if (strcmp(strParameter, "HPC") == 0) |
| 223 | return CMP_HPC; |
| 224 | else if (strcmp(strParameter, "GPU") == 0) |
| 225 | return CMP_GPU_HW; |
| 226 | else if (strcmp(strParameter, "OCL") == 0) |
| 227 | return CMP_GPU_OCL; |
| 228 | else if (strcmp(strParameter, "DXC") == 0) |
| 229 | return CMP_GPU_DXC; |
| 230 | else if (strcmp(strParameter, "VLK") == 0) |
| 231 | return CMP_GPU_VLK; |
| 232 | else |
| 233 | return CMP_UNKNOWN; |
| 234 | } |
| 235 | |
| 236 | static bool ProcessSingleFlags(const char* strCommand) |
| 237 | { |
no outgoing calls
no test coverage detected