modify system.cmake to enable fma flag
This commit is contained in:
parent
e0dac6b53b
commit
ae0b1dea19
|
@ -174,7 +174,7 @@ if (DEFINED TARGET)
|
||||||
endif()
|
endif()
|
||||||
if (DEFINED HAVE_AVX)
|
if (DEFINED HAVE_AVX)
|
||||||
if (NOT NO_AVX)
|
if (NOT NO_AVX)
|
||||||
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx")
|
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx -mfma")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if (DEFINED HAVE_AVX2)
|
if (DEFINED HAVE_AVX2)
|
||||||
|
|
|
@ -5,10 +5,6 @@ endif
|
||||||
TOPDIR = ..
|
TOPDIR = ..
|
||||||
include $(TOPDIR)/Makefile.system
|
include $(TOPDIR)/Makefile.system
|
||||||
|
|
||||||
ifdef HAVE_FMA3
|
|
||||||
CFLAGS += -mfma
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(ARCH), power)
|
ifeq ($(ARCH), power)
|
||||||
ifeq ($(C_COMPILER), CLANG)
|
ifeq ($(C_COMPILER), CLANG)
|
||||||
override CFLAGS += -fno-integrated-as
|
override CFLAGS += -fno-integrated-as
|
||||||
|
|
Loading…
Reference in New Issue