Skip to content

Commit

Permalink
Update arch files: add libgrpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Dec 12, 2023
1 parent f1c1858 commit 9f05a6a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions arch/Linux-gnu-x86_64.psmp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
# FFTW 3.3.10, ELPA 2023.05.001, HDF5 1.14.2,
# LIBINT 2.6.0, LIBXC 6.2.2, PLUMED 2.9.0,
# SPGLIB 1.16.2, LIBVORI 220621, GSL 2.7,
# COSMA 2.6.6, SIRIUS 7.4.3, LIBTORCH 1.12.1
# COSMA 2.6.6, SIRIUS 7.4.3, LIBTORCH 1.12.1,
# LIBGRPP 20231206
# on the Merlin cluster (PSI)
#
# Usage: Source this arch file and then run make as instructed.
# A full toolchain installation is performed as default.
# Optionally, GNU compiler and MPI implementation can be specified as arguments.
# Replace or adapt the "module add" commands below if needed.
#
# Last update: 04.10.2023
# Last update: 12.12.2023
#
# \
if [[ "${0}" == "${BASH_SOURCE}" ]]; then \
Expand Down Expand Up @@ -68,6 +69,7 @@ USE_COSMA := 2.6.6
USE_ELPA := 2023.05.001
USE_FFTW := 3.3.10
USE_HDF5 := 1.14.2
USE_LIBGRPP := 20231206
USE_LIBINT := 2.6.0
USE_LIBPEXSI := 1.2.0
USE_LIBTORCH := 1.12.1
Expand Down Expand Up @@ -228,6 +230,15 @@ ifneq ($(USE_LIBXC),)
endif
endif

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
15 changes: 13 additions & 2 deletions arch/Linux-intel-x86_64.psmp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
# Tested with: Intel 22.2 , Intel MPI, Intel MKL,
# LIBINT 2.6.0, LIBXC 6.2.2, ELPA 2023.05.001,
# PLUMED 2.9.0, SPGLIB 1.16.2, LIBVORI 220621,
# GSL 2.7, COSMA 2.6.6, HDF5 1.14.2
# GSL 2.7, COSMA 2.6.6, HDF5 1.14.2,
# LIBGRPP 20231206
#
# Usage: Source this arch file and then run make as instructed.
# A full toolchain installation is performed as default.
# Optionally, the Intel compiler version can be specified as argument.
# Replace or adapt the "module add" commands below if needed.
#
# Last update: 04.10.2023
# Last update: 12.12.2023
#
# \
if [[ "${0}" == "${BASH_SOURCE}" ]]; then \
Expand Down Expand Up @@ -55,6 +56,7 @@ TARGET_CPU := native
USE_COSMA := 2.6.6
USE_ELPA := 2023.05.001
USE_HDF5 := 1.14.2
USE_LIBGRPP := 20231206
USE_LIBINT := 2.6.0
USE_LIBPEXSI := 1.2.0
#USE_LIBTORCH := 1.12.1
Expand Down Expand Up @@ -183,6 +185,15 @@ ifneq ($(USE_LIBXC),)
endif
endif

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 9f05a6a

Please sign in to comment.