pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import libflame-5.2.0: A library for Matrix Operations



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Mon Feb 13 06:12:27 2023 -0800
Changeset:	37148e22f3f0a6772bac5ef84dc4eb6b42fdbe67

Added Files:
	libflame/DESCR
	libflame/Makefile
	libflame/Makefile.common
	libflame/PLIST
	libflame/buildlink3.mk
	libflame/distinfo
	libflame/patches/patch-configure
	libflame/patches/patch-configure__tidsp
	libflame/version.mk

Log Message:
Import libflame-5.2.0: A library for Matrix Operations

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=37148e22f3f0a6772bac5ef84dc4eb6b42fdbe67

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libflame/DESCR                          |  6 +++
 libflame/Makefile                       |  5 +++
 libflame/Makefile.common                | 78 +++++++++++++++++++++++++++++++++
 libflame/PLIST                          |  6 +++
 libflame/buildlink3.mk                  | 13 ++++++
 libflame/distinfo                       |  7 +++
 libflame/patches/patch-configure        | 52 ++++++++++++++++++++++
 libflame/patches/patch-configure__tidsp | 42 ++++++++++++++++++
 libflame/version.mk                     |  5 +++
 9 files changed, 214 insertions(+)

diffs:
diff --git a/libflame/DESCR b/libflame/DESCR
new file mode 100644
index 0000000000..ed46fd1c79
--- /dev/null
+++ b/libflame/DESCR
@@ -0,0 +1,6 @@
+libflame is a portable library for dense matrix computations, providing much
+of the functionality present in LAPACK, developed by current and former
+members of the Science of High-Performance Computing (SHPC) group in the
+Institute for Computational Engineering and Sciences at The University
+of Texas at Austin. libflame includes a compatibility layer, lapack2flame,
+which includes a complete LAPACK implementation.
diff --git a/libflame/Makefile b/libflame/Makefile
new file mode 100644
index 0000000000..8eb84b1011
--- /dev/null
+++ b/libflame/Makefile
@@ -0,0 +1,5 @@
+# $NetBSD$
+LIBFLAME_VARIANT=libflame
+.include "../../wip/libflame/Makefile.common"
+.include "../../wip/blis/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libflame/Makefile.common b/libflame/Makefile.common
new file mode 100644
index 0000000000..e164ac71b2
--- /dev/null
+++ b/libflame/Makefile.common
@@ -0,0 +1,78 @@
+# $NetBSD: Makefile,v 1.39 2019/10/05 06:14:05 ryoon Exp $
+# used by wip/libflame_pthread/Makefile
+# used by wip/libflame_openmp/Makefile
+
+DISTNAME=	libflame-${LIBFLAME_VERSION}
+PKGNAME=	${LIBFLAME_VARIANT}-${LIBFLAME_VERSION}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=flame/}
+WRKSRC=		${WRKDIR}/libflame-${GITHUB_TAG}
+LICENSE=	modified-bsd
+COMMENT=	Portable library for dense matrix computations
+
+CATEGORIES=	math
+
+CONFIGURE_SCRIPT=	./configure
+HAS_CONFIGURE=		yes
+USE_LANGUAGES=		c c++ fortran
+
+USE_TOOLS=	perl
+USE_TOOLS+=	gmake
+USE_TOOLS+=	bash
+
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS=		--includedir=${PREFIX}/include/${LIBFLAME_VARIANT}
+CONFIGURE_ARGS+=	--enable-max-arg-list-hack
+CONFIGURE_ARGS+=	--enable-cblas-interfaces
+CONFIGURE_ARGS+=	--enable-static-build
+CONFIGURE_ARGS+=	--enable-dynamic-build
+CONFIGURE_ARGS+=	--enable-verbose-make-output
+# CONFIGURE_ARGS+= --enable-autodetect-f77-ldflags
+# CONFIGURE_ARGS+= --enable-autodetect-f77-name-mangling
+# CONFIGURE_ARGS+= --enable-non-critical-code
+# CONFIGURE_ARGS+= --disable-builtin-blas
+CONFIGURE_ARGS+=	--enable-lapack2flame
+# CONFIGURE_ARGS+= --disable-external-lapack-for-subproblems
+# CONFIGURE_ARGS+= --disable-blas3-front-end-cntl-trees
+# CONFIGURE_ARGS+= --enable-supermatrix
+# CONFIGURE_ARGS+= --disable-gpu
+# CONFIGURE_ARGS+= --disable-vector-intrinsics
+# CONFIGURE_ARGS+= --enable-ldim-alignment
+# CONFIGURE_ARGS+= --enable-optimizations
+# CONFIGURE_ARGS+= --enable-warnings
+# CONFIGURE_ARGS+= --enable-debug
+# CONFIGURE_ARGS+= --disable-profiling
+# CONFIGURE_ARGS+= --enable-internal-error-checking=full
+# CONFIGURE_ARGS+= --disable-memory-leak-counter
+# CONFIGURE_ARGS+= --enable-blis-use-of-fla-malloc
+# CONFIGURE_ARGS+= --disable-goto-interfaces
+# CONFIGURE_ARGS+= --enable-portable-timer
+# CONFIGURE_ARGS+= --disable-windows-build
+# CONFIGURE_ARGS+= --disable-scc
+# CONFIGURE_ARGS+= --disable-tidsp
+
+.if ${LIBFLAME_VARIANT} == "libflame_openmp"
+CONFIGURE_ARGS+=	--enable-multithreading=openmp
+.elif ${LIBFLAME_VARIANT} == "libflame_pthread"
+CONFIGURE_ARGS+=	--enable-multithreading=pthreads
+.elif ${LIBFLAME_VARIANT} == "libflame"
+CONFIGURE_ARGS+=	--enable-multithreading=no
+.endif
+
+SUBST_CLASSES+=		libflame
+SUBST_STAGE.libflame=	pre-build
+SUBST_SED.libflame+=	-e "s|libflame|${LIBFLAME_VARIANT}|g"
+SUBST_FILES.libflame+=	Makefile
+SUBST_CLASSES+=		python
+SUBST_STAGE.python=	pre-build
+SUBST_SED.python+=	-e "s|/usr/bin/env python|${PYTHONBIN}|g"
+SUBST_FILES.python+=	windows/build/gen-config-file.py
+SUBST_FILES.python+=	windows/build/gather-src-for-windows.py
+SUBST_FILES.python+=	windows/build/gen-check-rev-file.py
+SUBST_FILES.python+=	netlib-test/lapack-3.4.2/lapack_testing.py
+SUBST_FILES.python+=	build/flatten-headers.py
+
+PLIST_SRC=	${.CURDIR}/../../wip/libflame/PLIST
+PLIST_SUBST+=	LIBFLAME_VARIANT=${LIBFLAME_VARIANT}
+
+.include "../../wip/libflame/version.mk"
+.include "../../lang/python/tool.mk"
diff --git a/libflame/PLIST b/libflame/PLIST
new file mode 100644
index 0000000000..81e6a08735
--- /dev/null
+++ b/libflame/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+include/${LIBFLAME_VARIANT}/FLAME.h
+lib/${LIBFLAME_VARIANT}.a
+lib/${LIBFLAME_VARIANT}.so
+lib/${LIBFLAME_VARIANT}.so.1
+lib/${LIBFLAME_VARIANT}.so.1.0.0
diff --git a/libflame/buildlink3.mk b/libflame/buildlink3.mk
new file mode 100644
index 0000000000..27e48085af
--- /dev/null
+++ b/libflame/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/11/05 16:31:45 bacon Exp $
+
+BUILDLINK_TREE+=	libflame
+
+.if !defined(LIBFLAME_BUILDLINK3_MK)
+LIBFLAME_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libflame+=	libflame>=5.2.0
+BUILDLINK_PKGSRCDIR.libflame?=		../../wip/libflame
+.include "../../wip/blis/buildlink3.mk"
+.endif	# LIBFLAME_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libflame
diff --git a/libflame/distinfo b/libflame/distinfo
new file mode 100644
index 0000000000..3f0b174069
--- /dev/null
+++ b/libflame/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.21 2017/09/11 20:56:28 wiz Exp $
+
+BLAKE2s (libflame-5.2.0-edbd6eba8a2269b0e05d64d8b02aff778fa4a07a.tar.gz) = 50e035a38df39f99b1aa9b0a83dd3dbe6998ba1a415d7ab3f79f4dd40b76b594
+SHA512 (libflame-5.2.0-edbd6eba8a2269b0e05d64d8b02aff778fa4a07a.tar.gz) = 7880c6c4aeb60709fd14a64506b5830c192ae43fc672a7d9b205634bbd392b2857ea1db4b3bd242a800f98d776d840e45cafbb254a13f673a6c65bbb8045067b
+Size (libflame-5.2.0-edbd6eba8a2269b0e05d64d8b02aff778fa4a07a.tar.gz) = 19256160 bytes
+SHA1 (patch-configure) = 60c396fadc5873b0a3b0437f255962a706166a32
+SHA1 (patch-configure__tidsp) = 5cffd9736605ec0d6cf02466da62531ab1f12c16
diff --git a/libflame/patches/patch-configure b/libflame/patches/patch-configure
new file mode 100644
index 0000000000..f62869017b
--- /dev/null
+++ b/libflame/patches/patch-configure
@@ -0,0 +1,52 @@
+$NetBSD$
+
+Address portability issues.
+
+--- configure.orig	2023-01-25 23:44:27.000000000 +0000
++++ configure
+@@ -6904,6 +6904,9 @@ printf %s "checking for (guessing) OpenM
+ 				icc)
+ 			fla_c_openmp_flags='-openmp'
+ 		;;
++				cc)
++			fla_c_openmp_flags='-fopenmp'
++		;;
+ 				gcc)
+ 			fla_c_openmp_flags='-fopenmp'
+ 		;;
+@@ -7470,7 +7473,7 @@ printf "%s\n" "no" >&6; }
+ 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate ${CC_VENDOR} optimization flags" >&5
+ printf %s "checking for (guessing) appropriate ${CC_VENDOR} optimization flags... " >&6; }
+
+-	if test "$fla_enable_compiler_optimizations" == "yes" ; then
++	if test "$fla_enable_compiler_optimizations" = "yes" ; then
+
+ 				case ${CC_VENDOR} in
+ 						gcc)
+@@ -7589,7 +7592,7 @@ printf "%s\n" "no" >&6; }
+ 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate ${CC_VENDOR} warning flags" >&5
+ printf %s "checking for (guessing) appropriate ${CC_VENDOR} warning flags... " >&6; }
+
+-	if test "$fla_enable_compiler_warnings" == "yes" ; then
++	if test "$fla_enable_compiler_warnings" = "yes" ; then
+
+ 				case ${CC_VENDOR} in
+ 						gcc)
+@@ -7707,7 +7710,7 @@ printf "%s\n" "no" >&6; }
+ 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate ${CC_VENDOR} debug flags" >&5
+ printf %s "checking for (guessing) appropriate ${CC_VENDOR} debug flags... " >&6; }
+
+-	if test "$fla_enable_compiler_debug" == "yes" ; then
++	if test "$fla_enable_compiler_debug" = "yes" ; then
+
+ 				case ${CC_VENDOR} in
+ 						gcc)
+@@ -7826,7 +7829,7 @@ printf "%s\n" "no" >&6; }
+ 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate ${CC_VENDOR} profiling flags" >&5
+ printf %s "checking for (guessing) appropriate ${CC_VENDOR} profiling flags... " >&6; }
+
+-	if test "$fla_enable_compiler_profiling" == "yes" ; then
++	if test "$fla_enable_compiler_profiling" = "yes" ; then
+
+ 				case ${CC_VENDOR} in
+ 						gcc)
diff --git a/libflame/patches/patch-configure__tidsp b/libflame/patches/patch-configure__tidsp
new file mode 100644
index 0000000000..63b3df84d7
--- /dev/null
+++ b/libflame/patches/patch-configure__tidsp
@@ -0,0 +1,42 @@
+$NetBSD$
+
+Address portability issues.
+
+--- configure_tidsp.orig	2023-01-25 23:44:27.000000000 +0000
++++ configure_tidsp
+@@ -6919,7 +6919,7 @@ $as_echo "no" >&6; }
+ 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate $CC optimization flags" >&5
+ $as_echo_n "checking for (guessing) appropriate $CC optimization flags... " >&6; }
+
+-	if test "$fla_enable_compiler_optimizations" == "yes" ; then
++	if test "$fla_enable_compiler_optimizations" = "yes" ; then
+
+ 				case $CC in
+ 						gcc)
+@@ -7037,7 +7037,7 @@ $as_echo "no" >&6; }
+ 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate $CC warning flags" >&5
+ $as_echo_n "checking for (guessing) appropriate $CC warning flags... " >&6; }
+
+-	if test "$fla_enable_compiler_warnings" == "yes" ; then
++	if test "$fla_enable_compiler_warnings" = "yes" ; then
+
+ 				case $CC in
+ 						gcc)
+@@ -7154,7 +7154,7 @@ $as_echo "no" >&6; }
+ 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate $CC debug flags" >&5
+ $as_echo_n "checking for (guessing) appropriate $CC debug flags... " >&6; }
+
+-	if test "$fla_enable_compiler_debug" == "yes" ; then
++	if test "$fla_enable_compiler_debug" = "yes" ; then
+
+ 				case $CC in
+ 						gcc)
+@@ -7272,7 +7272,7 @@ $as_echo "no" >&6; }
+ 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (guessing) appropriate $CC profiling flags" >&5
+ $as_echo_n "checking for (guessing) appropriate $CC profiling flags... " >&6; }
+
+-	if test "$fla_enable_compiler_profiling" == "yes" ; then
++	if test "$fla_enable_compiler_profiling" = "yes" ; then
+
+ 				case $CC in
+ 						gcc)
diff --git a/libflame/version.mk b/libflame/version.mk
new file mode 100644
index 0000000000..6c745901f7
--- /dev/null
+++ b/libflame/version.mk
@@ -0,0 +1,5 @@
+# $NetBSD: version.mk,v 1.2 2021/03/25 23:22:35 thor Exp $
+
+PKGREVISION=		1
+GITHUB_TAG=		edbd6eba8a2269b0e05d64d8b02aff778fa4a07a
+LIBFLAME_VERSION=	5.2.0


Home | Main Index | Thread Index | Old Index