File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,11 @@ prof_lapack : lapack_prebuild
278278lapack_prebuild :
279279ifeq ($(NO_LAPACK ) , $(filter 0,$(NO_LAPACK ) ) )
280280 -@echo "FC = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc
281+ ifeq ($(F_COMPILER ) , GFORTRAN)
282+ -@echo "override FFLAGS = $(LAPACK_FFLAGS) -fno-tree-vectorize" >> $(NETLIB_LAPACK_DIR)/make.inc
283+ else
281284 -@echo "override FFLAGS = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
285+ endif
282286 -@echo "FFLAGS_DRV = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
283287 -@echo "POPTS = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
284288 -@echo "FFLAGS_NOOPT = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc
Original file line number Diff line number Diff line change @@ -999,6 +999,9 @@ endforeach ()
999999
10001000if (NOT C_LAPACK)
10011001 set_source_files_properties (${LA_SOURCES} PROPERTIES COMPILE_FLAGS "${LAPACK_FFLAGS} " )
1002+ if (${F_COMPILER} STREQUAL "GFORTRAN" )
1003+ set_source_files_properties (${LA_SOURCES} PROPERTIES COMPILE_FLAGS "${LAPACK_FFLAGS} -fno-tree-vectorize" )
1004+ endif ()
10021005else ()
10031006 set_source_files_properties (${LA_SOURCES} PROPERTIES COMPILE_FLAGS "${LAPACK_CFLAGS} " )
10041007endif ()
You can’t perform that action at this time.
0 commit comments