| 215 | } |
| 216 | |
| 217 | string string_remove_gpu_from_cpu_name(const string &s) |
| 218 | { |
| 219 | if (s.find("AMD") == std::string::npos) { |
| 220 | return s; |
| 221 | } |
| 222 | |
| 223 | size_t pos = s.find("w/"); |
| 224 | if (pos == std::string::npos) { |
| 225 | pos = s.find("with"); |
| 226 | } |
| 227 | |
| 228 | if (pos != std::string::npos) { |
| 229 | return string_strip(s.substr(0, pos)); |
| 230 | } |
| 231 | |
| 232 | return s; |
| 233 | } |
| 234 | |
| 235 | /* Wide char strings helpers for Windows. */ |
| 236 |