Skip to content

Commit 616cc28

Browse files
authored
Override icx's default fast math mode to ensure correct NaN handling
1 parent 700ea74 commit 616cc28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: Makefile.x86_64

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ endif
88
endif
99
endif
1010

11+
ifeq ($(C_COMPILER), CLANG)
12+
ifeq ($(findstring icx,$(CC)),icx)
13+
CCOMMON_OPT += -fp-model=consistent
14+
endif
15+
endif
1116

1217
ifneq ($(DYNAMIC_ARCH),1)
1318
ADD_CPUFLAGS = 1

0 commit comments

Comments
 (0)