aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86/cpu-features.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2023-04-05 09:21:38 -0700
committerH.J. Lu <hjl.tools@gmail.com>2023-04-05 14:46:10 -0700
commit8b4cc05eabdb67902171d8c05a4915d14b1e5f58 (patch)
tree9a614854689deb658058c7d0cf04d478e5721d8e /sysdeps/x86/cpu-features.c
parent227983551d3b590e1a9ed4e81d793b7f6abfadd2 (diff)
downloadglibc-8b4cc05eabdb67902171d8c05a4915d14b1e5f58.zip
glibc-8b4cc05eabdb67902171d8c05a4915d14b1e5f58.tar.gz
glibc-8b4cc05eabdb67902171d8c05a4915d14b1e5f58.tar.bz2
<sys/platform/x86.h>: Add AMX-FP16 support
Add AMX-FP16 support to <sys/platform/x86.h>. Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diffstat (limited to 'sysdeps/x86/cpu-features.c')
-rw-r--r--sysdeps/x86/cpu-features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index da04ad0..6c1b5ef 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -213,6 +213,8 @@ update_active (struct cpu_features *cpu_features)
CPU_FEATURE_SET_ACTIVE (cpu_features, AMX_TILE);
/* Determine if AMX_INT8 is usable. */
CPU_FEATURE_SET_ACTIVE (cpu_features, AMX_INT8);
+ /* Determine if AMX_FP16 is usable. */
+ CPU_FEATURE_SET_ACTIVE (cpu_features, AMX_FP16);
}
/* These features are usable only when OSXSAVE is enabled. */