hypre needs arm1 compiler family, -armpl and -O3 -fsimdmath for opt
%define ohpc_mpi_dependent 1
%include %{_sourcedir}/OHPC_macros
-%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm"
+%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm1"
BuildRequires: openblas-%{compiler_family}%{PROJ_DELIM}
Requires: openblas-%{compiler_family}%{PROJ_DELIM}
%endif
@@ -58,10 +58,14 @@ cp /usr/lib/rpm/config.guess src/config
module load superlu
-%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm"
+%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm1"
module load openblas
%endif
+%if "%{compiler_family}" == "arm1"
+ optflags="-O3 -fsimdmath"
+%endif
+
FLAGS="%optflags -fPIC -Dhypre_dgesvd=dgesvd_ -Dhypre_dlamch=dlamch_ -Dhypre_blas_lsame=hypre_lapack_lsame -Dhypre_blas_xerbla=hypre_lapack_xerbla "
cd src
@@ -78,9 +82,9 @@ cd src
--with-lapack-libs="mkl_core mkl_intel_lp64 mkl_sequential" \
--with-lapack-lib-dirs=$MKLROOT/intel64/lib \
%else
-%if "%{compiler_family}" == "arm"
- --with-blas-lib="-L$ARMPL_LIBRARIES -larmpl" \
- --with-lapack-lib="-L$ARMPL_LIBRARIES -larmpl" \
+%if "%{compiler_family}" == "arm1"
+ --with-blas-lib="-armpl" \
+ --with-lapack-lib="-armpl" \
%else
--with-blas-lib="-L$OPENBLAS_LIB -lopenblas" \
--with-lapack-lib="-L$OPENBLAS_LIB -lopenblas" \
@@ -109,7 +113,7 @@ cd ..
module load superlu
-%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm"
+%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm1"
module load openblas
%endif
@@ -165,7 +169,7 @@ set version %{version}
# Require superlu (and openblas for gnu and llvm compiler families)
depends-on superlu
-%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm"
+%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm1"
depends-on openblas
%endif
