Fixed scalapack xcsep failer due to cdotxv kernel.

-Failure was observed in zen configuration as gcc
flag safe-math-optimization was being used for reference
kernel compilation.
- Optmized kernels were being compiled without this gcc flag
resulted in computation difference resulting in test case
failure.

AMD-Internal: [CPUPL-2121]
Change-Id: I5d86e589cdea633220aecadbcab84d9b88b31f57
This commit is contained in:
Harsh Dave
2022-05-06 06:34:15 -05:00
committed by Dipal M Zambare
parent 7247e6a150
commit 349dcc459a
2 changed files with 3 additions and 3 deletions

View File

@@ -79,10 +79,10 @@ endif
# Flags specific to reference kernels.
CROPTFLAGS := $(CKOPTFLAGS)
ifeq ($(CC_VENDOR),gcc)
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations -ffp-contract=fast
CRVECFLAGS := $(CKVECFLAGS)
else
ifeq ($(CC_VENDOR),clang)
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations -ffp-contract=fast
CRVECFLAGS := $(CKVECFLAGS)
else
CRVECFLAGS := $(CKVECFLAGS)
endif

View File

@@ -68,7 +68,7 @@ endif
# Flags specific to reference kernels.
CROPTFLAGS := $(CKOPTFLAGS)
ifeq ($(CC_VENDOR),gcc)
CRVECFLAGS := $(CKVECFLAGS) -funsafe-math-optimizations
CRVECFLAGS := $(CKVECFLAGS)
else
CRVECFLAGS := $(CKVECFLAGS)
endif