Skip to content
Snippets Groups Projects
Commit 68be1b14 authored by Thierry Thomas's avatar Thierry Thomas
Browse files

science/hypre: don’t use internal BLAS but switch to OpenBLAS

USES is set to blaslapack, but the internal BLAS and LAPACK libraries
are used: switch to the external OpenBLAS.

Since I’m there, also build with SUPERLU.

PR:		279739
Approved by:	yuri (maintainer)
parent 4c6970a7
No related branches found
No related tags found
No related merge requests found
PORTNAME= hypre
DISTVERSIONPREFIX= v
DISTVERSION= 2.31.0
PORTREVISION= 1
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
......@@ -12,7 +13,9 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/../LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE-MIT
USES= blaslapack cmake:testing fortran localbase
LIB_DEPENDS= libsuperlu.so:math/superlu
USES= blaslapack:openblas cmake:testing fortran localbase
USE_LDCONFIG= yes
USE_GITHUB= yes
......@@ -20,7 +23,11 @@ GH_ACCOUNT= hypre-space
WRKSRC_SUBDIR= src
CMAKE_ON= HYPRE_ENABLE_SHARED HYPRE_WITH_OPENMP
CMAKE_ON= HYPRE_ENABLE_SHARED HYPRE_WITH_OPENMP HYPRE_WITH_SUPERLU
CMAKE_OFF= HYPRE_ENABLE_HYPRE_BLAS HYPRE_ENABLE_HYPRE_LAPACK
CMAKE_ARGS= -DTPL_BLAS_LIBRARIES="${_BLASLIB}" \
-DTPL_SUPERLU_LIBRARIES="${LOCALBASE}/lib/libsuperlu.so" \
-DTPL_SUPERLU_INCLUDE_DIRS="${LOCALBASE}/include/superlu"
CMAKE_TESTING_ON= HYPRE_BUILD_TESTS # tests are only built and not run, see https://github.com/hypre-space/hypre/issues/502
OPTIONS_DEFINE= DOCS
......
......@@ -23,8 +23,6 @@ include/HYPREf.h
include/IJ_matrix.h
include/IJ_vector.h
include/_hypre_IJ_mv.h
include/_hypre_blas.h
include/_hypre_lapack.h
include/_hypre_parcsr_ls.h
include/_hypre_parcsr_mv.h
include/_hypre_seq_block_mv.h
......@@ -39,10 +37,8 @@ include/aux_parcsr_matrix.h
include/csr_block_matrix.h
include/csr_matmultivec.h
include/distributed_matrix.h
include/f2c.h
include/fortran.h
include/fortran_matrix.h
include/hypre_blas.h
include/interpreter.h
include/krylov.h
include/lobpcg.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment