mirror of
https://github.com/amd/blis.git
synced 2026-05-11 17:50:00 +00:00
never use libm with Intel compilers
Intel compilers include a highly optimized math library (libimf) that should be used instead of GNU libm. yes, this change is for ALL targets, including those that are not supported by the Intel compiler. there is no harm in doing this, and it is future-proof in the event that the Intel compilers support other architectures.
This commit is contained in:
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -88,7 +88,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -88,7 +88,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -95,7 +95,11 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
LDFLAGS := -lm -lmemkind
|
||||
ifeq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lmemkind
|
||||
else
|
||||
LDFLAGS := -lmemkind -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,11 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifeq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -mmic
|
||||
else
|
||||
LDFLAGS := -mmic -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -63,7 +63,9 @@ ARFLAGS := rcs
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS :=
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
# --- Determine the finalizer and related flags ---
|
||||
FINALIZER := pnacl-finalize
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -86,7 +86,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -88,7 +88,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,9 @@ ARFLAGS := cru
|
||||
# --- Determine the linker and related flags ---
|
||||
LINKER := $(CC)
|
||||
SOFLAGS := -shared
|
||||
ifneq ($(CC_VENDOR),icc)
|
||||
LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user