Skip to content

Commit be6e57b

Browse files
committed
More generic PETSc install
1 parent e698ad4 commit be6e57b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

3rdparty/ff-petsc/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ ifeq ($(FFCMAKE),no)
6969
PETSC_DOWNLOAD := $(PETSC_DOWNLOAD) --download-cmake
7070
endif
7171
PETSC_DOWNLOAD_C := $(PETSC_DOWNLOAD_C) --download-htool
72-
ifeq ($(FF_generic_petsc), yes)
73-
FLAGS_MTUNE := -mtune=generic
74-
endif
7572
unexport MAKEFLAGS
76-
COMMON_FLAGS := --with-debugging=0 COPTFLAGS='-O3 $(FLAGS_MTUNE)' CXXOPTFLAGS='-O3 $(FLAGS_MTUNE)' FOPTFLAGS='-O3 $(FLAGS_MTUNE)' --with-ssl=0 --with-x=0 --with-fortran-bindings=0 --with-hg=0 --with-c2html=0 --with-coverage=0 --with-syclc=0 --with-hipc=0 --with-cudac=0 --with-tau-perfstubs=0 --with-python=0 \
73+
COMMON_FLAGS := --with-debugging=0 --with-ssl=0 --with-x=0 --with-fortran-bindings=0 --with-hg=0 --with-c2html=0 --with-coverage=0 --with-syclc=0 --with-hipc=0 --with-cudac=0 --with-tau-perfstubs=0 --with-python=0 \
7774
--download-slepc --download-hpddm
7875

7976
ifneq ($(wildcard ~/.petsc_pkg),)
8077
COMMON_FLAGS += --with-packages-download-dir=~/.petsc_pkg
8178
endif
79+
ifeq ($(FF_generic_petsc), yes)
80+
COMMON_FLAGS += --with-avx512-kernels=0 CFLAGS+='-mtune=generic' CXXFLAGS+='-mtune=generic' FFLAGS+='-mtune=generic'
81+
endif
8282

8383
ifeq ($(FC),)
8484
COMMON_FLAGS += --with-fc=0

0 commit comments

Comments
 (0)