Skip to content

Commit

Permalink
Update Darwin arch files (add libgrpp)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Dec 13, 2023
1 parent 7d8e3fb commit d0d3542
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
17 changes: 14 additions & 3 deletions arch/Darwin-gnu-arm64.psmp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
# LIBINT 2.6.0, LIBXC 6.2.2,
# SPGLIB 1.16.2, PLUMED 2.9.0,
# LIBVORI 220621, GSL 2.7.1,
# COSMA 2.6.6, SIRIUS 7.4.3
# on an Apple M1 (macOS 14.1 Sonoma))
# COSMA 2.6.6, SIRIUS 7.4.3,
# LIBGRPP 20231206
# on an Apple M1 (macOS 14.2 Sonoma))
#
# Usage: Source this arch file and then run make as instructed.
# Ensure the links in /usr/local/bin to the lastest gcc version
# and "brew unlink openmpi" (or mpich) if installed.
#
# Last update: 07.11.2023
# Last update: 12.12.2023
#
# \
if [[ "${0}" == "${BASH_SOURCE}" ]]; then \
Expand Down Expand Up @@ -71,6 +72,7 @@
DO_CHECKS := no
TARGET_CPU := native
USE_COSMA := 2.6.6
USE_LIBGRPP := 20231206
USE_LIBINT := 2.6.0
USE_LIBVORI := 220621
USE_PLUMED := 2.9.0
Expand Down Expand Up @@ -144,6 +146,15 @@ CFLAGS += -I$(LIBXC_HOME)/include
DFLAGS += -D__LIBXC
LIBS += -Wl,-rpath,$(LIBXC_HOME)/lib -L$(LIBXC_HOME)/lib -lxcf03 -lxc

ifneq ($(USE_LIBGRPP),)
USE_LIBGRPP := $(strip $(USE_LIBGRPP))
LIBGRPP_INC := $(INSTALL_PATH)/libgrpp-main-$(USE_LIBGRPP)/include
LIBGRPP_LIB := $(INSTALL_PATH)/libgrpp-main-$(USE_LIBGRPP)/lib
CFLAGS += -I$(LIBGRPP_INC)
DFLAGS += -D__LIBGRPP
LIBS += $(LIBGRPP_LIB)/liblibgrpp.a
endif

ifneq ($(USE_LIBINT),)
USE_LIBINT := $(strip $(USE_LIBINT))
LMAX := $(strip $(LMAX))
Expand Down
17 changes: 14 additions & 3 deletions arch/Darwin-gnu-arm64.ssmp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
# (https://www.cp2k.org/howto:compile_on_macos)
#
# Tested with: GNU 13.2.0, FFTW 3.3.10, LIBINT 2.6.0, LIBVORI 220621,
# LIBXC 6.2.2, OpenBLAS 0.3.24, SPGLIB 1.16.2
# on an Apple M1 (macOS Sonoma 14.0)
# LIBXC 6.2.2, OpenBLAS 0.3.24, SPGLIB 1.16.2,
# LIBGRPP 20231206
# on an Apple M1 (macOS Sonoma 14.2)
#
# Usage: Source this arch file and then run make as instructed.
# Ensure the links in /usr/local/bin to the lastest gcc version.
#
# Last update: 06.10.2023
# Last update: 12.12.2023
#
# \
if [[ "${0}" == "${BASH_SOURCE}" ]]; then \
Expand Down Expand Up @@ -58,6 +59,7 @@
# Set options
DO_CHECKS := no
TARGET_CPU := native
USE_LIBGRPP := 20231206
USE_LIBINT := 2.6.0
USE_LIBVORI := 220621
USE_LIBXC := 6.2.2
Expand Down Expand Up @@ -119,6 +121,15 @@ CFLAGS += -I$(LIBXC_HOME)/include
DFLAGS += -D__LIBXC
LIBS += -Wl,-rpath,$(LIBXC_HOME)/lib -L$(LIBXC_HOME)/lib -lxcf03 -lxc

ifneq ($(USE_LIBGRPP),)
USE_LIBGRPP := $(strip $(USE_LIBGRPP))
LIBGRPP_INC := $(INSTALL_PATH)/libgrpp-main-$(USE_LIBGRPP)/include
LIBGRPP_LIB := $(INSTALL_PATH)/libgrpp-main-$(USE_LIBGRPP)/lib
CFLAGS += -I$(LIBGRPP_INC)
DFLAGS += -D__LIBGRPP
LIBS += $(LIBGRPP_LIB)/liblibgrpp.a
endif

ifneq ($(USE_LIBINT),)
USE_LIBINT := $(strip $(USE_LIBINT))
LMAX := $(strip $(LMAX))
Expand Down

0 comments on commit d0d3542

Please sign in to comment.