File tree Expand file tree Collapse file tree 4 files changed +25
-10
lines changed Expand file tree Collapse file tree 4 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,9 @@ if (NOT DYNAMIC_ARCH)
124
124
if (HAVE_AVX)
125
125
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx" )
126
126
endif ()
127
- if (HAVE_FMA3)
128
- set (CCOMMON_OPT "${CCOMMON_OPT} -mfma" )
129
- endif ()
127
+ # if (HAVE_FMA3)
128
+ # set (CCOMMON_OPT "${CCOMMON_OPT} -mfma")
129
+ # endif ()
130
130
if (HAVE_SSE)
131
131
set (CCOMMON_OPT "${CCOMMON_OPT} -msse" )
132
132
endif ()
Original file line number Diff line number Diff line change @@ -186,11 +186,11 @@ if (DEFINED TARGET)
186
186
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2" )
187
187
endif ()
188
188
endif ()
189
- if (DEFINED HAVE_FMA3)
190
- if (NOT NO_AVX2)
191
- set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mfma" )
192
- endif ()
193
- endif ()
189
+ # if (DEFINED HAVE_FMA3)
190
+ # if (NOT NO_AVX2)
191
+ # set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mfma")
192
+ # endif()
193
+ # endif()
194
194
if (DEFINED HAVE_SSE)
195
195
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse" )
196
196
endif ()
Original file line number Diff line number Diff line change @@ -311,7 +311,15 @@ function(GenerateNamedObjects sources_in)
311
311
configure_file (${new_source_file} .tmp ${new_source_file} COPYONLY )
312
312
file (REMOVE ${new_source_file} .tmp)
313
313
list (APPEND SRC_LIST_OUT ${new_source_file} )
314
-
314
+ message (STATUS ${new_source_file} )
315
+ if (DEFINED HAVE_FMA3)
316
+ if ( ${new_source_file} MATCHES "(s|d?)rot_k.*c" )
317
+ set_source_files_properties (${new_source_file} PROPERTIES COMPILE_OPTIONS "-mfma" )
318
+ endif ()
319
+ if ( ${new_source_file} MATCHES "dgemv_t_k.*c" )
320
+ set_source_files_properties (${new_source_file} PROPERTIES COMPILE_OPTIONS "-mfma" )
321
+ endif ()
322
+ endif ()
315
323
endforeach ()
316
324
endforeach ()
317
325
Original file line number Diff line number Diff line change
1
+ FMAFLAG=
2
+ ifndef OLDGCC
3
+ ifdef HAVE_FMA3
4
+ FMAFLAG = -mfma
5
+ endif
6
+ endif
7
+
1
8
### GEMV ###
2
9
3
10
ifndef SGEMVNKERNEL
@@ -263,7 +270,7 @@ $(KDIR)dgemv_n$(TSUFFIX).$(SUFFIX) $(KDIR)dgemv_n$(TSUFFIX).$(PSUFFIX) : $(KER
263
270
$(CC) -c $(CFLAGS) -DDOUBLE -UCOMPLEX -UTRANS $< -o $@
264
271
265
272
$(KDIR)dgemv_t$(TSUFFIX).$(SUFFIX) $(KDIR)dgemv_t$(TSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(DGEMVTKERNEL) $(TOPDIR)/common.h $(GEMVDEP)
266
- $(CC) -c $(CFLAGS) -DDOUBLE -UCOMPLEX -DTRANS $< -o $@
273
+ $(CC) -c $(CFLAGS) $(FMAFLAG) -DDOUBLE -UCOMPLEX -DTRANS $< -o $@
267
274
endif
268
275
269
276
$(KDIR)qgemv_n$(TSUFFIX).$(SUFFIX) $(KDIR)qgemv_n$(TSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(QGEMVNKERNEL)
You can’t perform that action at this time.
0 commit comments