Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpuid: detecting avx512-fp16 #1094

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
cpuid: detecting avx512-fp16
  • Loading branch information
devnexen committed Jan 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3ffbc2d8c48d942c9b8b1f22d3d4c86918a7e7bf
1 change: 1 addition & 0 deletions Sources/Core/CpuID.cpp
Original file line number Diff line number Diff line change
@@ -97,6 +97,7 @@ namespace spades {
case CpuFeature::AVX512ER: return (featureXcr0Avx512 && subfeature & (1U << 27));
case CpuFeature::AVX512PF: return (featureXcr0Avx512 && subfeature & (1U << 26));
case CpuFeature::AVX512F: return (featureXcr0Avx512 && subfeature & (1U << 16));
case CpuFeature::AVX512FP16: return (featureXcr0Avx512 && subfeature & (1U << 23));
case CpuFeature::SimultaneousMT: return featureEdx & (1U << 28);
}
}
1 change: 1 addition & 0 deletions Sources/Core/CpuID.h
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ namespace spades {
AVX512ER,
AVX512PF,
AVX512F,
AVX512FP16,
SimultaneousMT
};

2 changes: 2 additions & 0 deletions Sources/Gui/Main.cpp
Original file line number Diff line number Diff line change
@@ -506,6 +506,8 @@ int main(int argc, char **argv) {
SPLog("Supports AVX2: %s", cpuid.Supports(spades::CpuFeature::AVX2) ? "YES" : "NO");
SPLog("Supports AVX512F: %s",
cpuid.Supports(spades::CpuFeature::AVX512F) ? "YES" : "NO");
SPLog("Supports AVX512FP16: %s",
cpuid.Supports(spades::CpuFeature::AVX512FP16) ? "YES" : "NO");
SPLog("Supports AVX512CD: %s",
cpuid.Supports(spades::CpuFeature::AVX512CD) ? "YES" : "NO");
SPLog("Supports AVX512ER: %s",
Loading