Skip to content

Commit

Permalink
Update Darwin arch files
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Nov 16, 2022
1 parent 8018760 commit 8538f92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions arch/Darwin-arm64.psmp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
#
# CP2K Darwin arch file for a parallel arm64 binary
# (https://www.cp2k.org/howto:compile_on_macos)
#
# Tested with: GNU 12.2.0, MPICH 3.4.3,
# ScaLAPACK 2.1.0, OpenBLAS 0.3.21, FFTW 3.3.10, LIBINT 2.6.0,
Expand All @@ -27,8 +28,10 @@
brew install coreutils; \
brew install gcc; \
brew install pkg-config; \
brew install wget; \
else \
echo "ERROR: Homebrew installation not found"; \
echo ' Run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'; \
cd ../..; \
return 1; \
fi; \
Expand All @@ -39,8 +42,6 @@
echo "Check the output above for error messages and consistency!"; \
echo "If everything is OK, you can build a CP2K production binary with"; \
echo " make -j ARCH=${this_file%.*} VERSION=${this_file##*.}"; \
echo "Alternatively, you can add further checks, e.g. for regression testing, with"; \
echo " make -j ARCH=${this_file%.*} VERSION=${this_file##*.} DO_CHECKS=yes"; \
return

# Set options
Expand Down Expand Up @@ -89,8 +90,6 @@ endif
# Settings for regression testing
ifeq ($(DO_CHECKS), yes)
DFLAGS += -D__CHECK_DIAG
# CFLAGS_DEBUG := -fsanitize=address
# CFLAGS_DEBUG := -fsanitize=leak
FCFLAGS_DEBUG := -fcheck=bounds,do,recursion,pointer
FCFLAGS_DEBUG += -fcheck=all,no-array-temps
FCFLAGS_DEBUG += -ffpe-trap=invalid,overflow,zero
Expand Down Expand Up @@ -289,7 +288,7 @@ ifneq ($(USE_GSL),)
endif
endif

CFLAGS += $(DFLAGS) $(CFLAGS_DEBUG)
CFLAGS += $(DFLAGS)

FCFLAGS := $(CFLAGS) $(FCFLAGS_DEBUG) $(WFLAGS)
FCFLAGS += -fallow-argument-mismatch
Expand Down
5 changes: 3 additions & 2 deletions arch/Darwin-arm64.ssmp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
#
# CP2K Darwin arch file for a serial arm64 binary
# (https://www.cp2k.org/howto:compile_on_macos)
#
# Tested with: GNU 12.2.0, FFTW 3.3.10, LIBINT 2.6.0, LIBVORI 220621,
# LIBXC 6.0.0, OpenBLAS 0.3.21, SPGLIB 1.16.2
Expand All @@ -24,8 +25,10 @@
brew install coreutils; \
brew install gcc; \
brew install pkg-config; \
brew install wget; \
else \
echo "ERROR: Homebrew installation not found"; \
echo ' Run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'; \
cd ../..; \
return 1; \
fi; \
Expand All @@ -36,8 +39,6 @@
echo "Check the output above for error messages and consistency!"; \
echo "If everything is OK, you can build a CP2K production binary with"; \
echo " make -j ARCH=${this_file%.*} VERSION=${this_file##*.}"; \
echo "Alternatively, you can add further checks, e.g. for regression testing, with"; \
echo " make -j ARCH=${this_file%.*} VERSION=${this_file##*.} DO_CHECKS=yes"; \
return

# Set options
Expand Down

0 comments on commit 8538f92

Please sign in to comment.