New port: math/hmat-oss: Hierarchical matrix C/C++ library

This commit is contained in:
Yuri Victorovich
2019-04-29 19:07:06 +00:00
parent 2f6ce00077
commit c082697976
6 changed files with 76 additions and 0 deletions

View File

@@ -271,6 +271,7 @@
SUBDIR += gsl
SUBDIR += hexcalc
SUBDIR += hipmcl
SUBDIR += hmat-oss
SUBDIR += hs-Agda
SUBDIR += hs-Agda-stdlib
SUBDIR += hs-NumInstances

27
math/hmat-oss/Makefile Normal file
View File

@@ -0,0 +1,27 @@
# $FreeBSD$
PORTNAME= hmat-oss
DISTVERSION= 1.5.0-340
DISTVERSIONSUFFIX= -g700d1fa
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Hierarchical matrix C/C++ library
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libcblas.so:math/cblas \
libomp.so:devel/openmp \
libopenblas.so:math/openblas
USES= cmake localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= jeromerobert
USE_LDCONFIG= yes
CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \
-DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \
-DCBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libcblas.so
.include <bsd.port.mk>

3
math/hmat-oss/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1556520890
SHA256 (jeromerobert-hmat-oss-1.5.0-340-g700d1fa_GH0.tar.gz) = 60a13f3626ddcef46a0d4c8ff750a3ae982b8de2fac0f09a673e029c45c636fc
SIZE (jeromerobert-hmat-oss-1.5.0-340-g700d1fa_GH0.tar.gz) = 184636

View File

@@ -0,0 +1,13 @@
see https://github.com/jeromerobert/hmat-oss/issues/59
--- src/disable_threading.cpp.orig 2019-04-29 18:50:39 UTC
+++ src/disable_threading.cpp
@@ -37,6 +37,8 @@ extern "C" {
// This function is private in openblas
int goto_get_num_procs(void);
}
+
+void openblas_set_num_threads(int n);
#endif
namespace hmat {

10
math/hmat-oss/pkg-descr Normal file
View File

@@ -0,0 +1,10 @@
A hierarchical matrix C/C++ library including a LU solver.
Hierarchical matrices are semi-sparse matrices that have a hierarchical block
structure with dense blocks hierarchically embedded into other blocks, and the
elements not covered by blocks are zero.
For a more detailed definition please see the wikipedia article
"Hierarchical matrix".
WWW: https://github.com/jeromerobert/hmat-oss

22
math/hmat-oss/pkg-plist Normal file
View File

@@ -0,0 +1,22 @@
include/admissibility.hpp
include/assembly.hpp
include/cluster_tree.hpp
include/clustering.hpp
include/compression.hpp
include/coordinates.hpp
include/data_types.hpp
include/default_engine.hpp
include/full_matrix.hpp
include/h_matrix.hpp
include/hmat/config-oss.h
include/hmat/config.h
include/hmat/hmat.h
include/hmat_cpp_interface.hpp
include/tree.hpp
lib/cmake/hmat/HMATConfig.cmake
lib/cmake/hmat/HMATConfigVersion.cmake
lib/cmake/hmat/HMATLibraryDepends-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/hmat/HMATLibraryDepends.cmake
lib/libhmat-oss.so
lib/libhmat-oss.so.1
lib/libhmat-oss.so.1.5.0