Browse Source

modify system.cmake to enable fma flag

tags/v0.3.13^2
Qiyu8 5 years ago
parent
commit
ae0b1dea19
2 changed files with 1 additions and 5 deletions
  1. +1
    -1
      cmake/system.cmake
  2. +0
    -4
      kernel/Makefile

+ 1
- 1
cmake/system.cmake View File

@@ -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)


+ 0
- 4
kernel/Makefile View File

@@ -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…
Cancel
Save