pkgsrc-WIP-changes archive

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

Import libflame_pthread variant



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Mon Feb 13 06:15:30 2023 -0800
Changeset:	3e446e5770112eb58169458062e7eab900cd927c

Added Files:
	libflame_pthread/DESCR
	libflame_pthread/Makefile
	libflame_pthread/buildlink3.mk
	libflame_pthread/distinfo
	libflame_pthread/patches/patch-configure
	libflame_pthread/patches/patch-configure__tidsp

Log Message:
Import libflame_pthread variant

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

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

diffstat:
 libflame_pthread/DESCR                          |  9 +++++
 libflame_pthread/Makefile                       |  5 +++
 libflame_pthread/buildlink3.mk                  | 13 +++++++
 libflame_pthread/distinfo                       |  7 ++++
 libflame_pthread/patches/patch-configure        | 52 +++++++++++++++++++++++++
 libflame_pthread/patches/patch-configure__tidsp | 42 ++++++++++++++++++++
 6 files changed, 128 insertions(+)

diffs:
diff --git a/libflame_pthread/DESCR b/libflame_pthread/DESCR
new file mode 100644
index 0000000000..08d9dbc364
--- /dev/null
+++ b/libflame_pthread/DESCR
@@ -0,0 +1,9 @@
+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.
+
+
+This variant builds libflame with pthread support.
diff --git a/libflame_pthread/Makefile b/libflame_pthread/Makefile
new file mode 100644
index 0000000000..2996519241
--- /dev/null
+++ b/libflame_pthread/Makefile
@@ -0,0 +1,5 @@
+# $NetBSD$
+LIBFLAME_VARIANT=libflame_pthread
+.include "../../wip/libflame/Makefile.common"
+.include "../../wip/blis_pthread/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libflame_pthread/buildlink3.mk b/libflame_pthread/buildlink3.mk
new file mode 100644
index 0000000000..eb58b2b914
--- /dev/null
+++ b/libflame_pthread/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/11/05 16:31:45 bacon Exp $
+
+BUILDLINK_TREE+=	libflame_pthread
+
+.if !defined(LIBFLAME_PTHREAD_BUILDLINK3_MK)
+LIBFLAME_PTHREAD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libflame_pthread+=	libflame_pthread>=5.2.0
+BUILDLINK_PKGSRCDIR.libflame_pthread?=		../../wip/libflame_pthread
+.include "../../wip/blis_pthread/buildlink3.mk"
+.endif	# LIBFLAME_PTHREAD_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libflame_pthread
diff --git a/libflame_pthread/distinfo b/libflame_pthread/distinfo
new file mode 100644
index 0000000000..3f0b174069
--- /dev/null
+++ b/libflame_pthread/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_pthread/patches/patch-configure b/libflame_pthread/patches/patch-configure
new file mode 100644
index 0000000000..f62869017b
--- /dev/null
+++ b/libflame_pthread/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_pthread/patches/patch-configure__tidsp b/libflame_pthread/patches/patch-configure__tidsp
new file mode 100644
index 0000000000..63b3df84d7
--- /dev/null
+++ b/libflame_pthread/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)


Home | Main Index | Thread Index | Old Index