From c43f10535941f7dc133e155ff786ff265adeec77 Mon Sep 17 00:00:00 2001
From: Gregory Becker <becker33@llnl.gov>
Date: Wed, 18 Sep 2019 16:53:08 -0700
Subject: [PATCH] targets: add mic_knl target to microarchitectures.json

- This is needed to support Cray machines -- we need an architecture
  mic_knl > x86_64

- We used Cray's naming scheme for this target to make it work seamlessly
  with the module-based detection sccheme on Cray.  mic_knl is pretty
  much dead, so this will be the last succh target.  We will need to work
  wtih Cray and other vendors in the future.
---
 .../llnl/util/cpu/microarchitectures.json     | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/lib/spack/llnl/util/cpu/microarchitectures.json b/lib/spack/llnl/util/cpu/microarchitectures.json
index 2745f51411..d540d11194 100644
--- a/lib/spack/llnl/util/cpu/microarchitectures.json
+++ b/lib/spack/llnl/util/cpu/microarchitectures.json
@@ -296,6 +296,43 @@
         }
       }
     },
+    "mic_knl": {
+      "from": "broadwell",
+      "vendor": "GenuineIntel",
+      "features": [
+        "mmx",
+        "sse",
+        "sse2",
+        "ssse3",
+        "sse4_1",
+        "sse4_2",
+        "popcnt",
+        "aes",
+        "pclmulqdq",
+        "avx",
+        "rdrand",
+        "f16c",
+        "movbe",
+        "avx2",
+        "fma",
+        "avx2",
+        "bmi1",
+        "bmi2",
+        "rdseed",
+        "adx",
+        "avx512f",
+        "avx512pf",
+        "avx512er",
+        "avx512cd"
+      ],
+      "compilers": {
+        "gcc": {
+          "versions": "5.1:",
+          "name": "knl",
+          "flags": "-march={name} -mtune={name}"
+        }
+      }
+    },
     "skylake_avx512": {
       "from": "skylake",
       "vendor": "GenuineIntel",
-- 
GitLab