From 7bdc233087eebdeaecadf3790088583f4fa2c99e Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Thu, 26 Dec 2024 22:23:57 +0000 Subject: [PATCH] Update Makefile --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3b26e445..39d0e38d7 100644 --- a/Makefile +++ b/Makefile @@ -156,7 +156,14 @@ else # to get the current CPU architecture, run this: # g++ -march=native -Q --help=target | grep -- '-march= ' | cut -f3 - CXXFLAGS += -march=native + ifneq (,$(shell hostname -A | grep gsi.de)) + # virgo has znver4 nodes in the new partition + # CXXFLAGS += -march=znver4 + # and znver3 nodes in the other partitions and login nodes + CXXFLAGS += -march=native + else + CXXFLAGS += -march=native + endif # CXXFLAGS += -march=icelake-server