From nobody Wed Jun 1 00:30:57 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D1E301B4DAB2; Wed, 1 Jun 2022 00:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LCVS15bcDz4hQr; Wed, 1 Jun 2022 00:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654043457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MVaT4mUECVJS1CAmYuLqp59hOlI2Mta6GqtmqSKzn8Y=; b=aCEE8AzV7hIzVmPpgI75m2RAtu1uTlGwAquIeSUzGEhyHjT3GhrzF0kW5zIXvoi8i7JEgB Rpdzvi0vjWZmGAvfDI2BqsrjWX0sed+jThEYPxLeOZBd5In589kP2f8XB57TeJF1CO6LVW jB9ysKA9v1G8sOmhKnNUluAlSQZ1oVBXf6/7Hics7y8UxBa1A1Oei9T5ogZu3p/SL8/LwQ wI5gGKbqVnPkXKdYkH4Qkk+pgIOtBzSy6rYzDeZkIY8VkVXx8nYuzrq/BztiZeXUiNuw0I M79FzJK9zusE/gVGisgMLqqvykuNdLVlwpL+6U8VuNFI+5DuKToTklnd8Dun6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0AB5161B5; Wed, 1 Jun 2022 00:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2510UvnF013376; Wed, 1 Jun 2022 00:30:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2510UvH2013375; Wed, 1 Jun 2022 00:30:57 GMT (envelope-from git) Date: Wed, 1 Jun 2022 00:30:57 GMT Message-Id: <202206010030.2510UvH2013375@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 7402f0915740 - main - math/hptt: New port: High-Performance Tensor Transpose library List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7402f09157404e4947b26e4a55b60a0dda783652 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654043457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MVaT4mUECVJS1CAmYuLqp59hOlI2Mta6GqtmqSKzn8Y=; b=gKD5GZbrqC6/p7bmuT177czls1Tvm+4tdCZJK2WVqSa7QAt9ENXZnFjkcOeZPMrgExcmqD VLQ21poYWFMDTf3mwSbks1b8fk8W+bwML+VHIE1MsAxe0gCmw/2ex9/T5nf9FiewJr4nmd Q4Mo1na3XgOpPV26xL3ScKksRMPO6YJk+8zbPeF7ew1Dr3fh7JwHmhTGj8c2XD1pZmV0P1 4D/IqqJXx03udTtanv+X0bELE9T6UUOf33HgaaASDsCGtK4Zx4vLG2O18DmMKeANTdSwX6 GNRzY7Hgj2Q7HYzzhPbZWK1xxx4E6kmSIIJJj/inqOTOusJmNIAn3JY1fyAf0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654043457; a=rsa-sha256; cv=none; b=DxFN/0nKVWH2Vl8oM+/I7SA/bNxPzOo9Cz2PTXGMtxYT9nmT9fPAzt36pnLxOv2om0TnGD fTDO3l0z5c94WAmlFHYWaPY7BcjOAlC3clYXP529MmNLsBhlydBBp4MzZ5sC7JOsUlRa25 91a6Lt1DyqLXFEEKArsa0A+h15k+d+Sq5yQxfiEQrk6HIWfThIcpRZldcS2SbLO1I2asql 5JVZRm3282xehqIHKhTiX7zIf+XE4bKUpjyaPh8TlrYzcOAg2PLm6wmwIwwveLux0jsnli BTSyGDEFBCFJDRUQYPzvde3/nk/X+R1sSyJzjsfRif0vTO0tRzIXYR39EMhE3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7402f09157404e4947b26e4a55b60a0dda783652 commit 7402f09157404e4947b26e4a55b60a0dda783652 Author: Yuri Victorovich AuthorDate: 2022-06-01 00:30:06 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-01 00:30:55 +0000 math/hptt: New port: High-Performance Tensor Transpose library --- math/Makefile | 1 + math/hptt/Makefile | 26 ++++++++++++++++++++++++++ math/hptt/distinfo | 3 +++ math/hptt/files/patch-CMakeLists.txt | 11 +++++++++++ math/hptt/files/patch-testframework_Makefile | 11 +++++++++++ math/hptt/pkg-descr | 15 +++++++++++++++ math/hptt/pkg-plist | 8 ++++++++ 7 files changed, 75 insertions(+) diff --git a/math/Makefile b/math/Makefile index ea4089e86496..be23c4d1417a 100644 --- a/math/Makefile +++ b/math/Makefile @@ -376,6 +376,7 @@ SUBDIR += hmat-oss SUBDIR += hpcombi SUBDIR += hpipm + SUBDIR += hptt SUBDIR += hs-Agda SUBDIR += hs-penrose SUBDIR += hsl diff --git a/math/hptt/Makefile b/math/hptt/Makefile new file mode 100644 index 000000000000..30ff2067adcc --- /dev/null +++ b/math/hptt/Makefile @@ -0,0 +1,26 @@ +PORTNAME= hptt +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.5-18 +DISTVERSIONSUFFIX= -g9425386 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= High-Performance Tensor Transpose library + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +TEST_DEPENDS= gmake:devel/gmake + +USES= cmake:testing compiler:c++11-lang +USE_GCC= yes # workaround for https://github.com/springer13/hptt/issues/21 + +USE_GITHUB= yes +GH_ACCOUNT= springer13 + +CMAKE_ON= BUILD_SHARED_LIBS + +do-test: # tests fail to build, see https://github.com/springer13/hptt/issues/23 + @cd ${WRKSRC}/testframework && ${SETENV} ${MAKE_ENV} ${GMAKE} FREEBSD_GCC_DEFAULT=${GCC_DEFAULT} all + +.include diff --git a/math/hptt/distinfo b/math/hptt/distinfo new file mode 100644 index 000000000000..bcbc1deda3d6 --- /dev/null +++ b/math/hptt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1654029691 +SHA256 (springer13-hptt-v1.0.5-18-g9425386_GH0.tar.gz) = 00cc170a88bd7d3b18a02d6750a9475f34b2f1a9b9bf387e373e712282c4d556 +SIZE (springer13-hptt-v1.0.5-18-g9425386_GH0.tar.gz) = 635751 diff --git a/math/hptt/files/patch-CMakeLists.txt b/math/hptt/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..a1194edf89fb --- /dev/null +++ b/math/hptt/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-05-31 20:45:22 UTC ++++ CMakeLists.txt +@@ -37,7 +37,7 @@ endif() + + set(HPTT_SRCS src/hptt.cpp src/plan.cpp src/transpose.cpp src/utils.cpp) + +-add_library(hptt STATIC ${HPTT_SRCS}) ++add_library(hptt ${HPTT_SRCS}) + target_compile_features(hptt PUBLIC cxx_std_11) + target_include_directories(hptt PUBLIC ${PROJECT_SOURCE_DIR}/include) + #target_compile_definitions(hptt PRIVATE ${HPTT_CXX_COMPILE_DEFS}) diff --git a/math/hptt/files/patch-testframework_Makefile b/math/hptt/files/patch-testframework_Makefile new file mode 100644 index 000000000000..cd06e0be8957 --- /dev/null +++ b/math/hptt/files/patch-testframework_Makefile @@ -0,0 +1,11 @@ +--- testframework/Makefile.orig 2022-05-31 21:42:42 UTC ++++ testframework/Makefile +@@ -3,7 +3,7 @@ CXX_FLAGS=-O3 -std=c++11 + ifeq ($(CXX),icpc) + CXX_FLAGS += -qopenmp -xhost + else +-ifeq ($(CXX),g++) ++ifeq ($(CXX),g++$(FREEBSD_GCC_DEFAULT)) + CXX_FLAGS += -fopenmp -march=native + else + ifeq ($(CXX),clang++) diff --git a/math/hptt/pkg-descr b/math/hptt/pkg-descr new file mode 100644 index 000000000000..268966c4717b --- /dev/null +++ b/math/hptt/pkg-descr @@ -0,0 +1,15 @@ +HPTT is a high-performance C++ library for out-of-place tensor +transpositions. + +Key Features: +* Multi-threading support +* Explicit vectorization +* Auto-tuning (akin to FFTW) + * Loop order + * Parallelization +* Multi architecture support + * Explicitly vectorized kernels for (AVX and ARM) +* Supports float, double, complex and double complex data types +* Supports both column-major and row-major data layouts + +WWW: https://github.com/springer13/hptt diff --git a/math/hptt/pkg-plist b/math/hptt/pkg-plist new file mode 100644 index 000000000000..5a82767e0548 --- /dev/null +++ b/math/hptt/pkg-plist @@ -0,0 +1,8 @@ +include/compute_node.h +include/hptt.h +include/hptt_types.h +include/macros.h +include/plan.h +include/transpose.h +include/utils.h +lib/libhptt.so