check blas scalapack size for external ga

This commit is contained in:
edoapra 2025-05-12 13:59:47 -07:00
parent 69be8f14ac
commit 37c7000f6e
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -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 )