]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Change Diamond Rapids feature detect when model number could not be distinguished
authorHaochen Jiang <haochen.jiang@intel.com>
Tue, 1 Jul 2025 06:02:36 +0000 (14:02 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Wed, 2 Jul 2025 03:14:24 +0000 (11:14 +0800)
We will use AMX-FP8 for DMR since it is a smaller and more unique feature.

gcc/ChangeLog:

* config/i386/driver-i386.cc (host_detect_local_cpu): Change
to AMX-FP8 for Diamond Rapids.

gcc/config/i386/driver-i386.cc

index 1ff05e52ab3d3003938129da3e81410d6a810ebc..915a3312709008487871fc892635de7ff60238c1 100644 (file)
@@ -627,7 +627,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
              if (has_feature (FEATURE_AVX512F))
                {
                  /* Assume Diamond Rapids.  */
-                 if (has_feature (FEATURE_AMX_TRANSPOSE))
+                 if (has_feature (FEATURE_AMX_FP8))
                    cpu = "diamondrapids";
                  /* Assume Granite Rapids D.  */
                  else if (has_feature (FEATURE_AMX_COMPLEX))