mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
cache on disk mpi_lib detection
This commit is contained in:
parent
83e46dc7bf
commit
84637a0569
3 changed files with 15 additions and 5 deletions
|
|
@ -133,7 +133,7 @@ realclean:
|
|||
-$(RM) $(LIBDIR)/*.a $(BINDIR)/*
|
||||
-$(RM) *.db movecs fort.41 fort.44
|
||||
-$(RM) util/util_version.F
|
||||
-$(RM) libmpi.txt mpi_include.txt ga_cppflags.txt ga_ldflags.txt ga_use_scalapack.txt oblas_ompcheck_done.txt peigs_check_done.txt
|
||||
-$(RM) libmpi.txt mpi_lib.txt mpi_include.txt ga_cppflags.txt ga_ldflags.txt ga_use_scalapack.txt oblas_ompcheck_done.txt peigs_check_done.txt
|
||||
@# -$(RM) 64_to_32 32_to_64 deps_stamp # This conversion is such a hassle that realclean should not force it.
|
||||
|
||||
.PHONY: cleanF
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ else
|
|||
#extract GA libs location from last word in GA_LDLFLAGS
|
||||
LIBPATH := $(word $(words ${GA_LDFLAGS}),${GA_LDFLAGS})
|
||||
ifdef EXTERNAL_GA_PATH
|
||||
LIBPATH ::= -L$(shell $(NWCHEM_TOP)/src/tools/guess-mpidefs --mpi_lib)
|
||||
LIBPATH ::= -L$(shell $(NWCHEM_TOP)/src/tools/check_mpi_lib.sh $(NWCHEM_TOP))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
@ -244,7 +244,7 @@ else
|
|||
INCPATH := $(word $(words $(GA_CPPFLAGS)),$(GA_CPPFLAGS))
|
||||
|
||||
ifdef EXTERNAL_GA_PATH
|
||||
INCPATH := $(INCPATH) -I$(shell $(NWCHEM_TOP)/src/tools/guess-mpidefs --mpi_include)
|
||||
INCPATH ::= $(INCPATH) -I$(shell $(NWCHEM_TOP)/src/tools/check_mpi_inc.sh $(NWCHEM_TOP))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
@ -3989,8 +3989,8 @@ ifdef USE_MPI
|
|||
endif
|
||||
|
||||
NWMPI_INCLUDE := $(shell $(NWCHEM_TOP)/src/tools/check_mpi_inc.sh $(NWCHEM_TOP))
|
||||
NWMPI_LIB := $(shell $(NWCHEM_TOP)/src/tools/guess-mpidefs --mpi_lib)
|
||||
NWLIBMPI := $(shell $(NWCHEM_TOP)/src/tools/guess-mpidefs --libmpi)
|
||||
NWMPI_LIB := $(shell $(NWCHEM_TOP)/src/tools/check_mpi_lib.sh $(NWCHEM_TOP))
|
||||
NWLIBMPI := $(shell $(NWCHEM_TOP)/src/tools/check_libmpi.sh $(NWCHEM_TOP))
|
||||
endif
|
||||
|
||||
ifdef NWMPI_INCLUDE
|
||||
|
|
|
|||
10
src/tools/check_mpi_lib.sh
Executable file
10
src/tools/check_mpi_lib.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "NWCHEM_TOP arg missing"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -f $1/src/mpi_lib.txt ]; then
|
||||
$1/src/tools/guess-mpidefs --mpi_lib > $1/src/mpi_lib.txt
|
||||
fi
|
||||
cat $1/src/mpi_lib.txt
|
||||
Loading…
Add table
Add a link
Reference in a new issue