mirror of
https://github.com/amd/blis.git
synced 2026-05-11 17:50:00 +00:00
Changed unsafe-loop to unsafe-math optimizations.
Details:
- Changed -funsafe-loop-optimizations (re-)introduced in 7690855 for
make_defs.mk files' CRVECFLAGS to -funsafe-math-optimizations (to
account for a miscommunication in issue #300). Thanks to Dave Love
for this suggestion and Jeff Hammond for his feedback on the topic.
This commit is contained in:
committed by
Devrajegowda, Kiran
parent
9a42c1a323
commit
29d5bcb1c8
@@ -75,7 +75,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -75,7 +75,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -79,7 +79,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) #-funsafe-math-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -71,7 +71,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-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 -funsafe-loop-optimizations
|
||||
CRVECFLAGS := -march=knl -mno-avx512f -mno-avx512pf -mno-avx512er -mno-avx512cd -funsafe-math-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) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -75,7 +75,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -79,7 +79,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-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 -funsafe-loop-optimizations
|
||||
CRVECFLAGS := -march=skylake-avx512 -mno-avx512f -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -funsafe-math-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) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
@@ -62,7 +62,7 @@ endif
|
||||
# Flags specific to reference kernels.
|
||||
CROPTFLAGS := $(CKOPTFLAGS)
|
||||
ifeq ($(CC_VENDOR),gcc)
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-loop-optimizations
|
||||
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations
|
||||
else
|
||||
CRVECFLAGS := $(CKVECFLAGS)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user