Skip to content

Commit

Permalink
stop when using BUILD_OPENBLAS or BUILD_SCALAPACK and any of the othe…
Browse files Browse the repository at this point in the history
…r linear algebra env. variables are defined
  • Loading branch information
edoapra committed Oct 6, 2020
1 parent 82a9985 commit 2241ac5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/config/makefile.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,29 @@ endif
# other NWChem modules
ifdef BUILD_OPENBLAS
NW_CORE_SUBDIRS += libext
#bail out if BLASOPT or LAPACK_LIB or BLAS_LIB are defined by user
ifneq ($(or $(BLASOPT),$(LAPACK_LIB),$(BLAS_LIB)),)
$(info )
$(info You must unset)
$(info BLASOPT ,LAPACK_LIB and BLAS_LIB)
$(info when using BUILD_OPENBLAS )
$(info )
$(error )
endif
BLASOPT=-L$(NWCHEM_TOP)/src/libext/lib -lnwc_openblas
LAPACK_LIB=$(BLASOPT)
BLAS_LIB=$(BLASOPT)
endif
ifdef BUILD_SCALAPACK
NW_CORE_SUBDIRS += libext
ifneq ($(or $(SCALAPACK),$(SCALAPACK_LIB)),)
$(info )
$(info You must unset)
$(info SCALAPACK and SCALAPACK_LIB)
$(info when using BUILD_SCALAPACK )
$(info )
$(error )
endif
SCALAPACK=-L$(NWCHEM_TOP)/src/libext/lib -lnwc_scalapack
endif
ifdef BUILD_MPICH
Expand Down

0 comments on commit 2241ac5

Please sign in to comment.