summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2020-05-16 07:35:15 -0400
committerGravatar Morph2020-06-20 00:31:37 -0400
commit9bb5bf0b2bf62207c117f05aa76d0540b6e106fd (patch)
tree122895aa91b4378ab56cb7813e557a04e2c694c5
parentcommon/telemetry: Add AVX512 to telemetry (diff)
downloadyuzu-9bb5bf0b2bf62207c117f05aa76d0540b6e106fd.tar.gz
yuzu-9bb5bf0b2bf62207c117f05aa76d0540b6e106fd.tar.xz
yuzu-9bb5bf0b2bf62207c117f05aa76d0540b6e106fd.zip
main: Append AVX and FMA instructions to cpu string
Append AVX and FMA instructions to cpu string if the host cpu supports them
-rw-r--r--src/yuzu/main.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 4119d7907..059b96e70 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -217,7 +217,20 @@ GMainWindow::GMainWindow()
217 LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", yuzu_build_version, Common::g_scm_branch, 217 LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", yuzu_build_version, Common::g_scm_branch,
218 Common::g_scm_desc); 218 Common::g_scm_desc);
219#ifdef ARCHITECTURE_x86_64 219#ifdef ARCHITECTURE_x86_64
220 LOG_INFO(Frontend, "Host CPU: {}", Common::GetCPUCaps().cpu_string); 220 const auto& caps = Common::GetCPUCaps();
221 std::string cpu_string = caps.cpu_string;
222 if (caps.avx || caps.avx2 || caps.avx512) {
223 cpu_string += " | AVX";
224 if (caps.avx512) {
225 cpu_string += "512";
226 } else if (caps.avx2) {
227 cpu_string += '2';
228 }
229 if (caps.fma || caps.fma4) {
230 cpu_string += " | FMA";
231 }
232 }
233 LOG_INFO(Frontend, "Host CPU: {}", cpu_string);
221#endif 234#endif
222 LOG_INFO(Frontend, "Host OS: {}", QSysInfo::prettyProductName().toStdString()); 235 LOG_INFO(Frontend, "Host OS: {}", QSysInfo::prettyProductName().toStdString());
223 LOG_INFO(Frontend, "Host RAM: {:.2f} GB", 236 LOG_INFO(Frontend, "Host RAM: {:.2f} GB",