Skip to content

Commit ae0b1de

Browse files
committed
modify system.cmake to enable fma flag
1 parent e0dac6b commit ae0b1de

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cmake/system.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ if (DEFINED TARGET)
174174
endif()
175175
if (DEFINED HAVE_AVX)
176176
if (NOT NO_AVX)
177-
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx")
177+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx -mfma")
178178
endif()
179179
endif()
180180
if (DEFINED HAVE_AVX2)

kernel/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ endif
55
TOPDIR = ..
66
include $(TOPDIR)/Makefile.system
77

8-
ifdef HAVE_FMA3
9-
CFLAGS += -mfma
10-
endif
11-
128
ifeq ($(ARCH), power)
139
ifeq ($(C_COMPILER), CLANG)
1410
override CFLAGS += -fno-integrated-as

0 commit comments

Comments
 (0)