From nobody Sun Nov 12 13:48:21 2023 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 4SSv5y0Bq9z50rrF; Sun, 12 Nov 2023 13:48:22 +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 4SSv5x6ppGz4LgX; Sun, 12 Nov 2023 13:48:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699796902; 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=XYRtvyE+h8Zh4FzwHigXylDZmOSjztnZy/XjmxVRu7k=; b=n0CWSTL0jwzIzL4hco3xqcffLynPO3NXlP0mES6mzs9oOIQrv8uuCa/RZXLn/epv7Wbu1W h1oYHqZD6IXK0HoErWSNn7EBH1ykwL8TUGWXXPL5lcBarzyZXVS+XFecOtID5w0uBkcyKt r/ast7e8UPlwvg8Mp7CcJAqfZckQ/ZTMNbPygwKT+pQKWrp0KgkKawuBTHLfn4C8SYR5ju Ld3YoQA2HZMwY5ziO2ZhxhJcXxCBGgoRXi1d+NuqdVPCB8Xk4qh0DjlN5aeLYDHodE1cPA klqRsUMboOHCq/dUepP3ahacaDvEMb5M17XkVi0xSR9EguteHgF5PGqf8pkTBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699796902; 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=XYRtvyE+h8Zh4FzwHigXylDZmOSjztnZy/XjmxVRu7k=; b=P3jbqLqoXIv+YYEq1STB9MMcBztIJmqpLLBfOcofPIez+9Zy4uhk0eCrGAHdPNn0U4bnLk MVreCWMO39VneSnsAY2dT1qnLYBMec3iYe3xRDMvjn8kKx3DbVAM9q87yn9BtEVlStfoA9 FWV+HkUO+oEi9qbnovUn1h0vL1g6jJd4ZI5mYH7kl1qEHOQ9Q3SdNZlKFGslEXbQ/zLyLF vO0h/taJ5Ba3r40A/gxcixFRlyfMjjelASo3O/mvQYtcroQzHL6i7oM5mwLEJQ7N+jDJTb 1piy6gbdjxZFSrbXXfjhCAkkihP2qknPGVDE5ocUD8vnhl93Xmn+0P4/Jbw8Zw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699796902; a=rsa-sha256; cv=none; b=xncvRZdYNptw0e6OibbRk0Cww7ICLiAUo9IrR+d5v3iltr83iXs/rXemEEioWB3ZvCQ4ZD rxuFT6e7J8pUUINjvKs1Tt8JnVcj/KbqOWzu2YQ863Of8LgnECRbn5nDj9en0+q4CGzlyj VohPGJdDIsKKjYWG1y5pULmCiLtc9IvQsXSXSIrcVs/JAdBsMSNPmXJJYOpz6FysWu0Kd6 ktZup1lSd4vQ8OSJOhA9YvpjtMAtS0mcZDHGpUcM6RNJ5whKIoDe5Woq5/q6/7er5spkxB 7K9OWcv7jusRrz7T7I0O0T7zj15bptsQp3KWhf/X4EjYF1ddpefi8cQTwJfzqQ== 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 4SSv5x5m5cz9D6; Sun, 12 Nov 2023 13:48:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3ACDmL66091739; Sun, 12 Nov 2023 13:48:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ACDmL7S091736; Sun, 12 Nov 2023 13:48:21 GMT (envelope-from git) Date: Sun, 12 Nov 2023 13:48:21 GMT Message-Id: <202311121348.3ACDmL7S091736@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 173683a2d0f4 - main - math/dsfmt: new port, double precision SIMD-oriented Fast Mersenne Twister 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: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 173683a2d0f477fd7457a3b3d2e1d065dd252bda Auto-Submitted: auto-generated The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=173683a2d0f477fd7457a3b3d2e1d065dd252bda commit 173683a2d0f477fd7457a3b3d2e1d065dd252bda Author: Thierry Thomas AuthorDate: 2023-11-10 21:38:00 +0000 Commit: Thierry Thomas CommitDate: 2023-11-12 13:47:23 +0000 math/dsfmt: new port, double precision SIMD-oriented Fast Mersenne Twister ATM it is bundled in Julia. --- math/Makefile | 1 + math/dsfmt/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ math/dsfmt/distinfo | 3 +++ math/dsfmt/pkg-descr | 7 +++++++ math/dsfmt/pkg-plist | 36 ++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) diff --git a/math/Makefile b/math/Makefile index bd3acc4964e2..66a8ad132edf 100644 --- a/math/Makefile +++ b/math/Makefile @@ -276,6 +276,7 @@ SUBDIR += dionysus SUBDIR += disco SUBDIR += dqfun + SUBDIR += dsfmt SUBDIR += drgeo SUBDIR += dsdp SUBDIR += dune-alugrid diff --git a/math/dsfmt/Makefile b/math/dsfmt/Makefile new file mode 100644 index 000000000000..6db9b98c10ef --- /dev/null +++ b/math/dsfmt/Makefile @@ -0,0 +1,55 @@ +PORTNAME= dSFMT +PORTVERSION= 2.2.5 +DISTVERSIONPREFIX= v +CATEGORIES= math + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Double precision SIMD-oriented Fast Mersenne Twister +WWW= http://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/SFMT/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= compiler + +USE_GITHUB= yes +GH_ACCOUNT= MersenneTwister-Lab + +CSTD= c99 +CFLAGS+= -DDSFMT_MEXP=19937 -fPIC -DDSFMT_SHLIB ${OPTCFLAGS} \ + -finline-functions -fomit-frame-pointer -fno-strict-aliasing \ + -Wall -shared +OPTCFLAGS?= -O3 +CFLAGS_amd64= -msse2 -DHAVE_SSE2 +LDFLAGS+= -Wl,-soname,libdSFMT.so.0 +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DOCS + +.include + +.if ${ARCH} == amd64 +TEST_TARGET= sse2-check +.else +TEST_TARGET= std-check +.endif + +do-build: + (cd ${WRKSRC} && \ + ${CC} ${CFLAGS} ${LDFLAGS} dSFMT.c -o libdSFMT.so.0) + +do-install: + ${INSTALL_DATA} ${WRKSRC}/dSFMT.h ${STAGEDIR}${PREFIX}/include/ + ${INSTALL_LIB} ${WRKSRC}/libdSFMT.so.0 ${STAGEDIR}${PREFIX}/lib + (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s libdSFMT.so.0 libdSFMT.so) + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR}/html + ${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html + +do-test: + ${REINPLACE_CMD} -e '/^CC =/d;/^CCFLAGS =/d' ${WRKSRC}/Makefile + (cd ${WRKSRC} && ${DO_MAKE_BUILD} ${TEST_TARGET}) + +.include diff --git a/math/dsfmt/distinfo b/math/dsfmt/distinfo new file mode 100644 index 000000000000..558e14376a48 --- /dev/null +++ b/math/dsfmt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1699641017 +SHA256 (MersenneTwister-Lab-dSFMT-v2.2.5_GH0.tar.gz) = b7bc498cd140b4808963b1ff9f33b42a491870f54775c1060ecad0e02bcaffb4 +SIZE (MersenneTwister-Lab-dSFMT-v2.2.5_GH0.tar.gz) = 4984272 diff --git a/math/dsfmt/pkg-descr b/math/dsfmt/pkg-descr new file mode 100644 index 000000000000..e9b6d9d39fae --- /dev/null +++ b/math/dsfmt/pkg-descr @@ -0,0 +1,7 @@ +The purpose of dSFMT is to speed up the generation by avoiding the expensive +conversion of integer to double (floating point). dSFMT directly generates +double precision floating point pseudorandom numbers which have the IEEE +Standard for Binary Floating-Point Arithmetic (ANSI/IEEE Std 754-1985) format. + +dSFMT is only available on the CPUs which use IEEE 754 format double precision +floating point numbers. diff --git a/math/dsfmt/pkg-plist b/math/dsfmt/pkg-plist new file mode 100644 index 000000000000..e8b13a274d64 --- /dev/null +++ b/math/dsfmt/pkg-plist @@ -0,0 +1,36 @@ +include/dSFMT.h +lib/libdSFMT.so +lib/libdSFMT.so.0 +%%PORTDOCS%%%%DOCSDIR%%/README.jp.txt +%%PORTDOCS%%%%DOCSDIR%%/README.txt +%%PORTDOCS%%%%DOCSDIR%%/html/annotated.html +%%PORTDOCS%%%%DOCSDIR%%/html/bc_s.png +%%PORTDOCS%%%%DOCSDIR%%/html/classes.html +%%PORTDOCS%%%%DOCSDIR%%/html/closed.png +%%PORTDOCS%%%%DOCSDIR%%/html/d_s_f_m_t_8c.html +%%PORTDOCS%%%%DOCSDIR%%/html/d_s_f_m_t_8h.html +%%PORTDOCS%%%%DOCSDIR%%/html/d_s_f_m_t_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.css +%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.png +%%PORTDOCS%%%%DOCSDIR%%/html/files.html +%%PORTDOCS%%%%DOCSDIR%%/html/functions.html +%%PORTDOCS%%%%DOCSDIR%%/html/functions_vars.html +%%PORTDOCS%%%%DOCSDIR%%/html/globals.html +%%PORTDOCS%%%%DOCSDIR%%/html/globals_defs.html +%%PORTDOCS%%%%DOCSDIR%%/html/globals_func.html +%%PORTDOCS%%%%DOCSDIR%%/html/globals_type.html +%%PORTDOCS%%%%DOCSDIR%%/html/globals_vars.html +%%PORTDOCS%%%%DOCSDIR%%/html/howto-compile.html +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%%%DOCSDIR%%/html/jquery.js +%%PORTDOCS%%%%DOCSDIR%%/html/mainpage_8txt.html +%%PORTDOCS%%%%DOCSDIR%%/html/nav_f.png +%%PORTDOCS%%%%DOCSDIR%%/html/nav_h.png +%%PORTDOCS%%%%DOCSDIR%%/html/open.png +%%PORTDOCS%%%%DOCSDIR%%/html/struct_d_s_f_m_t___t.html +%%PORTDOCS%%%%DOCSDIR%%/html/tab_a.png +%%PORTDOCS%%%%DOCSDIR%%/html/tab_b.png +%%PORTDOCS%%%%DOCSDIR%%/html/tab_h.png +%%PORTDOCS%%%%DOCSDIR%%/html/tab_s.png +%%PORTDOCS%%%%DOCSDIR%%/html/tabs.css +%%PORTDOCS%%%%DOCSDIR%%/html/union_w128___t.html