mirror of
https://github.com/amd/blis.git
synced 2026-05-12 01:59:59 +00:00
Restored -funsafe-loop-optimizations to subconfigs.
Details: - Restored use of -funsafe-loop-optimizations in the definitions of CRVECFLAGS (when using gcc), but only for sub-configurations (and not configuration families such as amd64, intel64, and x86_64). This more or less reverts5190d05and6cf1550.
This commit is contained in:
committed by
Devrajegowda, Kiran
parent
e62bdd4df1
commit
9a42c1a323
@@ -75,7 +75,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -75,7 +75,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -79,7 +79,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -71,7 +71,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -99,7 +99,7 @@ endif
|
||||
# Note: We use AVX2 for reference kernels instead of AVX-512.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := -march=knl -mno-avx512f -mno-avx512pf -mno-avx512er -mno-avx512cd
|
||||
CRVECFLAGS := -march=knl -mno-avx512f -mno-avx512pf -mno-avx512er -mno-avx512cd -funsafe-loop-optimizations
|
||||
else
|
||||
ifeq ($(CC_VENDOR),icc)
|
||||
CRVECFLAGS := -xMIC-AVX512
|
||||
|
||||
@@ -79,7 +79,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -75,7 +75,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -79,7 +79,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -89,7 +89,7 @@ endif
|
||||
# to overcome the AVX-512 frequency drop". (Issue #187)
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := -march=skylake-avx512 -mno-avx512f -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd
|
||||
CRVECFLAGS := -march=skylake-avx512 -mno-avx512f -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -funsafe-loop-optimizations
|
||||
else
|
||||
ifeq ($(CC_VENDOR),icc)
|
||||
CRVECFLAGS := -xCORE-AVX2
|
||||
|
||||
@@ -75,7 +75,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -62,7 +62,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user