pkgsrc-WIP-changes archive

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

wip/libhighway: import libhighway-0.12.2



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Tue Jun 22 12:07:45 2021 +0200
Changeset:	701f636aecada0e4f3bb0bae0bcb6755bc3bf6ca

Added Files:
	libhighway/DESCR
	libhighway/Makefile
	libhighway/PLIST
	libhighway/buildlink3.mk
	libhighway/distinfo

Log Message:
wip/libhighway: import libhighway-0.12.2

Highway is a C++ library for SIMD (Single Instruction, Multiple Data), i.e.
applying the same operation to 'lanes'.

## Why Highway?

- more portable (same source code) than platform-specific intrinsics,
- works on a wider range of compilers than compiler-specific vector extensions,
- more dependable than autovectorization,
- easier to write/maintain than assembly language,
- supports runtime dispatch,
- supports variable-length vector architectures.

## Current status

Supported targets: scalar, SSE4, AVX2, AVX-512, NEON (ARMv7 and v8), WASM SIMD.
Ports to RVV and SVE/SVE2 are in progress.

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

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

diffstat:
 libhighway/DESCR         | 16 ++++++++++++++++
 libhighway/Makefile      | 26 ++++++++++++++++++++++++++
 libhighway/PLIST         | 25 +++++++++++++++++++++++++
 libhighway/buildlink3.mk | 13 +++++++++++++
 libhighway/distinfo      |  6 ++++++
 5 files changed, 86 insertions(+)

diffs:
diff --git a/libhighway/DESCR b/libhighway/DESCR
new file mode 100644
index 0000000000..91ebaa459e
--- /dev/null
+++ b/libhighway/DESCR
@@ -0,0 +1,16 @@
+Highway is a C++ library for SIMD (Single Instruction, Multiple Data), i.e.
+applying the same operation to 'lanes'.
+
+## Why Highway?
+
+- more portable (same source code) than platform-specific intrinsics,
+- works on a wider range of compilers than compiler-specific vector extensions,
+- more dependable than autovectorization,
+- easier to write/maintain than assembly language,
+- supports runtime dispatch,
+- supports variable-length vector architectures.
+
+## Current status
+
+Supported targets: scalar, SSE4, AVX2, AVX-512, NEON (ARMv7 and v8), WASM SIMD.
+Ports to RVV and SVE/SVE2 are in progress.
diff --git a/libhighway/Makefile b/libhighway/Makefile
new file mode 100644
index 0000000000..2134dc8fe3
--- /dev/null
+++ b/libhighway/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME=	highway-0.12.2
+PKGNAME=	lib${DISTNAME}
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_GITHUB:=google/}
+GITHUB_PROJECT=	highway
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/google/highway/
+COMMENT=	C++ library for SIMD
+LICENSE=	apache-2.0
+
+USE_CMAKE=	yes
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++
+
+CMAKE_ARGS+=	-DHWY_SYSTEM_GTEST:BOOL=TRUE
+
+PKGCONFIG_OVERRIDE+=	libhwy-contrib.pc.in
+PKGCONFIG_OVERRIDE+=	libhwy-test.pc.in
+PKGCONFIG_OVERRIDE+=	libhwy.pc.in
+
+BUILDLINK_API_DEPENDS.googletest+=	googletest>=1.10.0nb1
+.include "../../devel/googletest/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libhighway/PLIST b/libhighway/PLIST
new file mode 100644
index 0000000000..c9d9efa685
--- /dev/null
+++ b/libhighway/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD$
+include/hwy/aligned_allocator.h
+include/hwy/base.h
+include/hwy/cache_control.h
+include/hwy/contrib/image/image.h
+include/hwy/contrib/math/math-inl.h
+include/hwy/foreach_target.h
+include/hwy/highway.h
+include/hwy/nanobenchmark.h
+include/hwy/ops/arm_neon-inl.h
+include/hwy/ops/arm_sve-inl.h
+include/hwy/ops/scalar-inl.h
+include/hwy/ops/set_macros-inl.h
+include/hwy/ops/shared-inl.h
+include/hwy/ops/wasm_128-inl.h
+include/hwy/ops/x86_128-inl.h
+include/hwy/ops/x86_256-inl.h
+include/hwy/ops/x86_512-inl.h
+include/hwy/targets.h
+include/hwy/tests/test_util-inl.h
+lib/libhwy.a
+lib/libhwy_contrib.a
+lib/pkgconfig/libhwy-contrib.pc
+lib/pkgconfig/libhwy-test.pc
+lib/pkgconfig/libhwy.pc
diff --git a/libhighway/buildlink3.mk b/libhighway/buildlink3.mk
new file mode 100644
index 0000000000..f8c55a58d9
--- /dev/null
+++ b/libhighway/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libhighway
+
+.if !defined(LIBHIGHWAY_BUILDLINK3_MK)
+LIBHIGHWAY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libhighway+=	libhighway>=0.12.2
+BUILDLINK_PKGSRCDIR.libhighway?=	../../wip/libhighway
+
+.endif	# LIBHIGHWAY_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libhighway
diff --git a/libhighway/distinfo b/libhighway/distinfo
new file mode 100644
index 0000000000..f271c06a5e
--- /dev/null
+++ b/libhighway/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (highway-0.12.2.tar.gz) = 650e9ab2d136ab418446c3f94dd93eb0008506af
+RMD160 (highway-0.12.2.tar.gz) = 2d738911da05993b32fa9b00312bd97a12d8c573
+SHA512 (highway-0.12.2.tar.gz) = 857a3ecbeaf13d69b9807d6f7daf0a1dc791008c7ce0413cb20457eb057f60fa9a5836eff7cf28c884566bae746d9b7d850b3cf88767bb299f10fd1440a56e06
+Size (highway-0.12.2.tar.gz) = 1487685 bytes


Home | Main Index | Thread Index | Old Index