Skip to content

Commit

Permalink
Test if xiar is available (legacy).
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Oct 3, 2024
1 parent 193866d commit 2976b5f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions config/cp2k/Linux-x86-64-intelx.arch
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ prefix_dflags = $(addprefix -D,$1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13
# or pickup the Intel Compiler (if available).
GNU ?= 0
ifeq (0,$(GNU))
XIAR := $(if $(call which,xiar),xiar,ar)
ifeq (,$(shell echo "$${FC}"))
ifneq (,$(filter ifx ifx2,$(notdir $(call which,ifx))$(INTEL)))
FC := ifx
Expand Down Expand Up @@ -169,8 +170,8 @@ ifneq (0,$(MPI))
endif
ifeq (0,$(GNU))
ifeq (1,$(INTEL)) # fallback to next-gen in case of C/C++
RANLIB := xiar -s
AR := xiar -r
RANLIB := $(XIAR) -s
AR := $(XIAR) -r
CXX := mpiicpc $(if $(call which,icpc),$(NULL),-cxx=icpx)
CC := mpiicc $(if $(call which,icc),$(NULL),-cc=icx)
FC := mpiifort
Expand All @@ -183,8 +184,8 @@ ifneq (0,$(MPI))
FC := mpiifx
LD := mpiifx
else
RANLIB := xiar -s
AR := xiar -r
RANLIB := $(XIAR) -s
AR := $(XIAR) -r
CXX := mpiicpc -cxx=icpx
CC := mpiicc -cc=icx
FC := mpiifort -fc=ifx
Expand All @@ -200,8 +201,8 @@ ifneq (0,$(MPI))
endif
else ifeq (0,$(GNU))
ifeq (1,$(INTEL)) # fallback to next-gen in case of C/C++
RANLIB := xiar -s
AR := xiar -r
RANLIB := $(XIAR) -s
AR := $(XIAR) -r
CXX := $(if $(call which,icpc),icpc,icpx)
CC := $(if $(call which,icc),icc,icx)
FC := ifort
Expand Down

0 comments on commit 2976b5f

Please sign in to comment.