Skip to content

Commit d24392c

Browse files
committed
Don't show CPU extension flags for AVX on non-x86 platforms
1 parent 71084e4 commit d24392c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngscopeclient/HardwareFlagsDialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@ bool HardwareFlagsDialog::DoRender()
7171

7272
if(ImGui::CollapsingHeader("CPU"))
7373
{
74+
#ifdef __x86_64__
7475
ImGui::Checkbox("FMA", &g_hasFMA);
7576
ImGui::Checkbox("AVX2", &g_hasAvx2);
7677
ImGui::Checkbox("AVX512F", &g_hasAvx512F);
7778
ImGui::Checkbox("AVX512VL", &g_hasAvx512VL);
7879
ImGui::Checkbox("AVX512DQ", &g_hasAvx512DQ);
80+
#endif
7981
}
8082

8183
if(ImGui::CollapsingHeader("GPU"))

0 commit comments

Comments
 (0)