Commit 71227cb3 authored by Christoph Junghans's avatar Christoph Junghans
Browse files

cmake: convert INTEL_ARCH to upper

parent 2137668c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -791,9 +791,9 @@ if(PKG_USER-INTEL)
    set(INTEL_ARCH_VALUES cpu knl)
    set_property(CACHE INTEL_ARCH PROPERTY STRINGS ${INTEL_ARCH_VALUES})
    validate_option(INTEL_ARCH INTEL_ARCH_VALUES)
    string(TOLOWER ${INTEL_ARCH} INTEL_ARCH)
    string(TOUPPER ${INTEL_ARCH} INTEL_ARCH)

    if(INTEL_ARCH STREQUAL "knl")
    if(INTEL_ARCH STREQUAL "CPU")
      set(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -xHost -qopenmp -qoffload")
      set(MIC_OPTIONS "-qoffload-option,mic,compiler,\"-fp-model fast=2 -mGLOB_default_function_attrs=\\\"gather_scatter_loop_unroll=4\\\"\"")
      add_compile_options(-xMIC-AVX512 -qoffload -fno-alias -ansi-alias -restrict -qoverride-limits ${MIC_OPTIONS})