From nobody Tue Jun 18 09:25:21 2024 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 4W3LvQ3gX5z5NRr3; Tue, 18 Jun 2024 09:25: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 4W3LvQ1mX9z4vjP; Tue, 18 Jun 2024 09:25:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718702722; 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=3/x6rpxP3QfVReXGOcLW0z+ZxjXn2/LHEEjgOgjRLM8=; b=MAnQK7ix8Aa/uFpQxyLv01Hzd3VGO2pjrB2lVBMl1HVvVYfoWpSKz3scZVU78SETsO5+Hc V4LAuBUOQHDMV4cu7lPleEQYFSnE0BENtRrAPPWez1iyc6f8XYWIBC/0TaCAeENgzbq2aH bqiaOreaQz4IRnQhd6IRAYE/VGWAE6uNVqSbR9n2hOFZhAcubRYlfgC41BpNCLHsViFpDy lklR+2E2huwOy3PADwMZ5AKbJ/h+2FK804h8cOKb7vPuSJsGgswNnnhltj91OjwUKlyEB2 t4blGL0HEkI9YFDYo1+KK2C05V1pR7t/SyWdLprRxCfuSXKxexMRrhBRwKKU3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718702722; a=rsa-sha256; cv=none; b=MeyGiYzCcd9APT1d/EzWKU+dGJChwG4g7c3Kv54jEjJlpTwZYA85DpC7AEC/yH9wxPd3wg r8STayMFCppy1M7Ikh150UUu5wuhvCr5oyW2AomTt2NU7gdsWrcyRmBO5Dx6dLqh3OngcN mbSL1q/fQO1rQRXhhsvnBO3Idd8kXVICttftFCbiLdLSQgSjw1+HJfu0uBoEkLJuOMcGBf OvGGHFVOJx28IHobaiuwAloQyJjbmCOQl+YEer58KPyujGEVTrpGXw5tOHbfqq7d95Trkz WX2+JE1O5PCqGlu9PJDI+IajBZ7hHmHkK315wXnRicIzHcl0IpJ8ZDoAbpJyFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718702722; 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=3/x6rpxP3QfVReXGOcLW0z+ZxjXn2/LHEEjgOgjRLM8=; b=l8Hfna/qNNfL2yavpfAMSMC5E9SQQ21Wg805cS43Ch81nf5BP+wPG9hRrWkRQ1qinUeoDB WhjM+EhoyLRI3O0FcLnI3FE4dWkbsly7N15Z9c864wnoERfCDvDV3A68o8ulnNuxKnWrSq V2xjzuCcWgq1AIALEnffNkpLzRJ7cIc9+2eg+yy3xx4kZnYuANND1KzB0FQHlF7L2KMIDJ MTzxHhpizw9cb7WuHApRm4oUtdf3iSdqxISzJQguJ+VfSCPX98x25a692CVOxsmv4HUTpH VE2CJwc0i3Sb6N4Uecvk3A77nrDe8EheWH6d3y/XeHQN0JUwHZUOHpmh3HhYAg== 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 4W3LvQ0Tvyzsyj; Tue, 18 Jun 2024 09:25:22 +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 45I9PL39025505; Tue, 18 Jun 2024 09:25:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45I9PLGm025502; Tue, 18 Jun 2024 09:25:21 GMT (envelope-from git) Date: Tue, 18 Jun 2024 09:25:21 GMT Message-Id: <202406180925.45I9PLGm025502@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: ee3c219d54e5 - main - graphics/oidn: update 2.2.2 =?utf-8?Q?=E2=86=92?= 2.3.0 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-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: ee3c219d54e505fbd03f427ec9afaf485128ae7d Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee3c219d54e505fbd03f427ec9afaf485128ae7d commit ee3c219d54e505fbd03f427ec9afaf485128ae7d Author: Yuri Victorovich AuthorDate: 2024-06-18 09:24:55 +0000 Commit: Yuri Victorovich CommitDate: 2024-06-18 09:25:07 +0000 graphics/oidn: update 2.2.2 → 2.3.0 Reported by: portscout --- graphics/oidn/Makefile | 8 +++++--- graphics/oidn/distinfo | 10 +++++----- graphics/oidn/files/patch-core_thread.cpp | 24 +++++++++++++++--------- graphics/oidn/files/patch-core_thread.h | 12 ++++++------ 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/graphics/oidn/Makefile b/graphics/oidn/Makefile index 42e154c44be6..d2aaf1e511e0 100644 --- a/graphics/oidn/Makefile +++ b/graphics/oidn/Makefile @@ -1,7 +1,6 @@ PORTNAME= oidn DISTVERSIONPREFIX= v -DISTVERSION= 2.2.2 -PORTREVISION= 1 +DISTVERSION= 2.3.0 CATEGORIES= graphics MASTER_SITES= http://freebsd.org/:weights # bogus URL to make the framework happy, the fetch uses Git URL below DISTFILES= ${PORTNAME}-weights-${WEIGHTS_GIT_HASH}${EXTRACT_SUFX}:weights @@ -49,7 +48,7 @@ OPENIMAGEIO_LIB_DEPENDS= libOpenImageIO.so:graphics/openimageio OPENIMAGEIO_IMPLIES= APPS # OpenImageIO is only used by apps and examples WEIGHTS_GIT_URL= https://github.com/OpenImageDenoise/oidn-weights.git -WEIGHTS_GIT_HASH= 44ff866123ffd6c26bbc27e5e48e8cd4ec8a1a66 +WEIGHTS_GIT_HASH= 28883d1769d5930e13cf7f1676dd852bd81ed9e7 pre-fetch: @if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-weights-${WEIGHTS_GIT_HASH}${EXTRACT_SUFX}" ]; then \ @@ -59,8 +58,11 @@ pre-fetch: ( \ ${MKDIR} ${WRKDIR}; \ HOME=${WRKDIR}; \ + echo "--1--" && \ git config --global filter.lfs.smudge "git-lfs smudge -- %f" && \ + echo "--2-- WD=`pwd`" && \ git clone -q ${WEIGHTS_GIT_URL} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && \ + echo "--3--" && \ (cd ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && git reset -q --hard ${WEIGHTS_GIT_HASH} && ${RM} -r .git) && \ ${RM} -r ${WRKDIR} \ ) && \ diff --git a/graphics/oidn/distinfo b/graphics/oidn/distinfo index a34847df214a..53bb128e9328 100644 --- a/graphics/oidn/distinfo +++ b/graphics/oidn/distinfo @@ -1,8 +1,8 @@ -TIMESTAMP = 1712306981 -SHA256 (oidn-weights-44ff866123ffd6c26bbc27e5e48e8cd4ec8a1a66.tar.gz) = 042707ed810b503c6d6ee0fa0ff1fad48ae04b880f4e7a3ce3efd54ab583e9e7 -SIZE (oidn-weights-44ff866123ffd6c26bbc27e5e48e8cd4ec8a1a66.tar.gz) = 20593214 -SHA256 (OpenImageDenoise-oidn-v2.2.2_GH0.tar.gz) = 2a0bcb4ba11b0ef68c043d65ed7eac52c6c4ba19dde75794d5aecaf03ca367f2 -SIZE (OpenImageDenoise-oidn-v2.2.2_GH0.tar.gz) = 3631104 +TIMESTAMP = 1718696155 +SHA256 (oidn-weights-28883d1769d5930e13cf7f1676dd852bd81ed9e7.tar.gz) = 90726b544f6e8b86a8bc4756e7c0b3da7530d4bab9dd671f2689001b4f9801f7 +SIZE (oidn-weights-28883d1769d5930e13cf7f1676dd852bd81ed9e7.tar.gz) = 46880514 +SHA256 (OpenImageDenoise-oidn-v2.3.0_GH0.tar.gz) = e71555003f972863ace8a7391287c0d74f1adfc875138338f577daf43b269402 +SIZE (OpenImageDenoise-oidn-v2.3.0_GH0.tar.gz) = 3634727 SHA256 (OpenImageDenoise-mkl-dnn-9bea36e_GH0.tar.gz) = b4626c0cf65e64ec16d93f8af7941bccd62385da5ea16fd81de5d26b7cb10f71 SIZE (OpenImageDenoise-mkl-dnn-9bea36e_GH0.tar.gz) = 7191010 SHA256 (ROCmSoftwarePlatform-composable_kernel-e85178b_GH0.tar.gz) = b870ae0dcac8083a239814fff673a83ddd5abfc477b4320af08a2232cd42849c diff --git a/graphics/oidn/files/patch-core_thread.cpp b/graphics/oidn/files/patch-core_thread.cpp index 9ed86331bfa6..708349925e26 100644 --- a/graphics/oidn/files/patch-core_thread.cpp +++ b/graphics/oidn/files/patch-core_thread.cpp @@ -1,6 +1,6 @@ ---- core/thread.cpp.orig 2023-06-24 12:06:59 UTC +--- core/thread.cpp.orig 2024-06-14 23:02:44 UTC +++ core/thread.cpp -@@ -1,6 +1,8 @@ +@@ -1,11 +1,13 @@ // Copyright 2009 Intel Corporation // SPDX-License-Identifier: Apache-2.0 @@ -9,7 +9,13 @@ #if defined(_MSC_VER) #pragma warning (disable : 4146) // unary minus operator applied to unsigned type, result still unsigned #endif -@@ -120,7 +122,7 @@ OIDN_NAMESPACE_BEGIN + +-#if defined(__linux__) ++#if defined(__linux__) || defined(__FreeBSD__) + #include + #include + #elif defined(__APPLE__) +@@ -125,7 +127,7 @@ OIDN_NAMESPACE_BEGIN printWarning("SetThreadGroupAffinity failed"); } @@ -18,16 +24,16 @@ // ----------------------------------------------------------------------------------------------- // ThreadAffinity: Linux -@@ -165,7 +167,7 @@ OIDN_NAMESPACE_BEGIN +@@ -179,7 +181,7 @@ OIDN_NAMESPACE_BEGIN - for (size_t i = 0; i < threadIds.size(); ++i) + for (size_t i = 0; i < threadIDs.size(); ++i) { - cpu_set_t affinity; + cpuset_t affinity; CPU_ZERO(&affinity); - CPU_SET(threadIds[i], &affinity); + CPU_SET(threadIDs[i], &affinity); -@@ -182,7 +184,7 @@ OIDN_NAMESPACE_BEGIN +@@ -196,7 +198,7 @@ OIDN_NAMESPACE_BEGIN const pthread_t thread = pthread_self(); // Save the current affinity @@ -36,7 +42,7 @@ { printWarning("pthread_getaffinity_np failed"); oldAffinities[threadIndex] = affinities[threadIndex]; -@@ -190,7 +192,7 @@ OIDN_NAMESPACE_BEGIN +@@ -204,7 +206,7 @@ OIDN_NAMESPACE_BEGIN } // Set the new affinity @@ -45,7 +51,7 @@ printWarning("pthread_setaffinity_np failed"); } -@@ -202,7 +204,7 @@ OIDN_NAMESPACE_BEGIN +@@ -216,7 +218,7 @@ OIDN_NAMESPACE_BEGIN const pthread_t thread = pthread_self(); // Restore the original affinity diff --git a/graphics/oidn/files/patch-core_thread.h b/graphics/oidn/files/patch-core_thread.h index 86c7e1697ca5..13ccbdd34e90 100644 --- a/graphics/oidn/files/patch-core_thread.h +++ b/graphics/oidn/files/patch-core_thread.h @@ -1,6 +1,6 @@ ---- core/thread.h.orig 2023-05-24 17:03:47 UTC +--- core/thread.h.orig 2024-06-14 23:02:44 UTC +++ core/thread.h -@@ -8,6 +8,11 @@ +@@ -9,6 +9,11 @@ #if !defined(_WIN32) #include #include @@ -12,7 +12,7 @@ #if defined(__APPLE__) #include #endif -@@ -130,7 +135,7 @@ OIDN_NAMESPACE_BEGIN +@@ -135,7 +140,7 @@ OIDN_NAMESPACE_BEGIN std::vector oldAffinities; // original thread affinities }; @@ -21,10 +21,10 @@ // ----------------------------------------------------------------------------------------------- // ThreadAffinity: Linux -@@ -153,8 +158,8 @@ OIDN_NAMESPACE_BEGIN - void restore(int threadIndex); +@@ -161,8 +166,8 @@ OIDN_NAMESPACE_BEGIN + // Parses a list of numbers from a file in /sys/devices/system + static std::vector parseList(const std::string& filename); - private: - std::vector affinities; // thread affinities - std::vector oldAffinities; // original thread affinities + std::vector affinities; // thread affinities