mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-29 06:35:39 -04:00
check blas scalapack size for external ga
This commit is contained in:
parent
69be8f14ac
commit
37c7000f6e
1 changed files with 14 additions and 0 deletions
|
|
@ -152,6 +152,20 @@ ifdef EXTERNAL_GA_PATH
|
|||
ifndef BLAS_SIZE
|
||||
BLAS_SIZE=8
|
||||
endif
|
||||
ifneq ($(GA_HAS_SCALAPACK),Y)
|
||||
#check scalapack size
|
||||
GA_SCALAPACK_SIZE := $(shell ${EXTERNAL_GA_PATH}/bin/ga-config --scalapack_size)
|
||||
#check if scalapack and blas sizes are the same
|
||||
ifneq ($(GA_SCALAPACK_SIZE),$(GA_BLAS_SIZE))
|
||||
$(info )
|
||||
$(info NWChem requires BLAS and ScaLapack with the same size )
|
||||
$(info Global Arrays was built with BLAS size=${GA_BLAS_SIZE})
|
||||
$(info Global Arrays was built with ScaLapack size=${GA_SCALAPACK_SIZE})
|
||||
$(info )
|
||||
$(error )
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifneq ($(BLAS_SIZE),$(GA_BLAS_SIZE))
|
||||
$(info )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue