File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,6 @@ CCOMMON_OPT += -mavx2
32
32
FCOMMON_OPT += -mavx2
33
33
endif
34
34
endif
35
- ifndef OLDGCC
36
- ifdef HAVE_FMA3
37
- CCOMMON_OPT += -mfma
38
- FCOMMON_OPT += -mfma
39
- endif
40
- endif
41
35
42
36
ifeq ($(CORE), SKYLAKEX)
43
37
ifndef DYNAMIC_ARCH
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
+
8
+
1
9
### AMAX ###
2
10
3
11
ifndef SAMAXKERNEL
@@ -828,10 +836,10 @@ $(KDIR)xnrm2_k$(TSUFFIX).$(SUFFIX) $(KDIR)xnrm2_k$(TPSUFFIX).$(PSUFFIX) : $(KE
828
836
$(CC) $(CFLAGS) -DCOMPLEX -c -DXDOUBLE $< -o $@
829
837
830
838
$(KDIR)srot_k$(TSUFFIX).$(SUFFIX) $(KDIR)srot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SROTKERNEL)
831
- $(CC) -c $(CFLAGS) -UCOMPLEX -UCOMPLEX -UDOUBLE $< -o $@
839
+ $(CC) -c $(CFLAGS) $(FMAFLAG) -UCOMPLEX -UCOMPLEX -UDOUBLE $< -o $@
832
840
833
841
$(KDIR)drot_k$(TSUFFIX).$(SUFFIX) $(KDIR)drot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(DROTKERNEL)
834
- $(CC) -c $(CFLAGS) -UCOMPLEX -UCOMPLEX -DDOUBLE $< -o $@
842
+ $(CC) -c $(CFLAGS) $(FMAFLAG) -UCOMPLEX -UCOMPLEX -DDOUBLE $< -o $@
835
843
836
844
$(KDIR)qrot_k$(TSUFFIX).$(SUFFIX) $(KDIR)qrot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(QROTKERNEL)
837
845
$(CC) -c $(CFLAGS) -UCOMPLEX -UCOMPLEX -DXDOUBLE $< -o $@
You can’t perform that action at this time.
0 commit comments