Override icx's default fast math mode to ensure correct NaN handling

This commit is contained in:
Martin Kroeker 2024-05-26 12:59:11 +02:00 committed by GitHub
parent 700ea74a37
commit 616cc28d82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ endif
endif
endif
ifeq ($(C_COMPILER), CLANG)
ifeq ($(findstring icx,$(CC)),icx)
CCOMMON_OPT += -fp-model=consistent
endif
endif
ifneq ($(DYNAMIC_ARCH),1)
ADD_CPUFLAGS = 1