From nobody Wed Dec 27 22:56:35 2023 X-Original-To: dev-commits-ports-main@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 4T0n7l4Ldjz54Y4q; Wed, 27 Dec 2023 22:56:35 +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 4T0n7l3pg1z4nrG; Wed, 27 Dec 2023 22:56:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703717795; 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=L71wiruTbeGF2Kw+LIfqmXPASQ+26hmSDoww1csM9YY=; b=qqGcZKLsg56a8s4yg1ItBUKfYuPQLYVwcYU1iX5eEie9Jo8YHh09pjLDJXTF+vrn7gfZQ/ oN7Ej0SDVLEn/6XnsE7S5/6IYpwiWy6I77r15VE8Wy2EUX/rtgGoayxC35UibKvKi+W9JO 7KWUj5291wUkG7MdqIPE1w2YlGmjyP/5AiYsNkUilyZL/f7kr6jR7foZ4O5d5sMpOSMBig mBveZ7cR6h+tGUIm8+H6HgMY9rSHXnvgqkbtJZdd+iFhnNZ7P6j8DhqbLf+q24nyE69Uyg Q/wNrPq3+AZDaCLqdA5e5PxZI7jzmAxUVwTsimet0dxPNud85dwsB6dqM0fw2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703717795; a=rsa-sha256; cv=none; b=Ft7kGhZoFHO9nRIP7H4qp+hhd29z1ZLUDYdtZOAGxSolmzKz+xy9Bh9WrmYKMWR+Nxov8m 129OJxopbLt6ejzgA68KN8HyjutKpFittVPTKDUv2F7Iojd37qAh4H3FZYGDA7h57uDDEZ YTK6FuwJQw+RrCuNB1/E7j8JmLSPqC4QoGMyKW7aFczMzOTfHdeNziji3gvYxlLIUq4SfD pC+aeql/V8jEpU7mreWaFKQHwT5TquY7hqt4cYPmE3DpQ60n62y5PoLBc/OoIJLspA/Y+k /1OmcvKxArUNb64OX8qp15K1hPVuSB+3PvCAPEoatPdqbmJMVPBj8YwWbKQRbg== 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=1703717795; 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=L71wiruTbeGF2Kw+LIfqmXPASQ+26hmSDoww1csM9YY=; b=UYDfhYrnfqPkmkfqyjh7eXXTtU/+xVMSMgjZwmTbRgsEgRTQBmTBDEplSd9mCQvRTzlNOE KDiZofZUGu9I95E629D+9rbnF0AmqF+1zEcvfVPlk6EqClesdXybHP+Fx2Df4wtxTmD0pd D6bawnaHpOMz+kxqGL4g3nsn1/eT+fra3De3m81bdGqB3rO5rqiXWClw2Rm1XA2kl+qZ3J 6sYCRM+PLfeFfxaB9tENS3eM8ix6MdIuONNb73Qqza/bZBA0wla2p6DwvbTIrVRHCfPt7X DtGFNTCLS/SGNOewRI4jSxGlElDX9CYICtq0tOFHVH37fICfa6f2ihrmTirfBA== 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 4T0n7l2sxWzxQX; Wed, 27 Dec 2023 22:56:35 +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 3BRMuZDR020979; Wed, 27 Dec 2023 22:56:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BRMuZCx020976; Wed, 27 Dec 2023 22:56:35 GMT (envelope-from git) Date: Wed, 27 Dec 2023 22:56:35 GMT Message-Id: <202312272256.3BRMuZCx020976@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: ed4dd88a4aeb - main - misc/pytorch: update 2.1.0 =?utf-8?Q?=E2=86=92?= 2.1.2 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: ed4dd88a4aebe462e67da2bd0f98abea4d245d5a Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=ed4dd88a4aebe462e67da2bd0f98abea4d245d5a commit ed4dd88a4aebe462e67da2bd0f98abea4d245d5a Author: Yuri Victorovich AuthorDate: 2023-12-27 22:33:46 +0000 Commit: Yuri Victorovich CommitDate: 2023-12-27 22:56:33 +0000 misc/pytorch: update 2.1.0 → 2.1.2 --- misc/pytorch/Makefile | 10 +++--- misc/pytorch/distinfo | 6 ++-- misc/pytorch/files/patch-CMakeLists.txt | 38 +++++++++++++++++++--- ...native_sparse_ValidateCompressedIndicesCommon.h | 14 ++++---- 4 files changed, 49 insertions(+), 19 deletions(-) diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile index 4d0250ce1d88..b48fb01272c5 100644 --- a/misc/pytorch/Makefile +++ b/misc/pytorch/Makefile @@ -1,7 +1,6 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v -DISTVERSION= 2.1.0 -PORTREVISION= 1 +DISTVERSION= 2.1.2 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ DIST_SUBDIR= ${PORTNAME} @@ -19,7 +18,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= gmake:devel/gmake \ ${LOCALBASE}/include/fxdiv.h:devel/fxdiv -LIB_DEPENDS= libopenblas.so:math/openblas \ +LIB_DEPENDS= libabsl_base.so:devel/abseil \ + libblis.so:math/blis \ + libopenblas.so:math/openblas \ libmpi.so:net/openmpi \ libonnx.so:misc/onnx \ libpthreadpool.so:devel/pthreadpool \ @@ -33,8 +34,9 @@ CMAKE_OFF= BUILD_CUSTOM_PROTOBUF USE_CUDA USE_ROCM USE_NNPACK USE_QNNPACK USE_P CMAKE_ON= USE_SYSTEM_PYBIND11 \ USE_SYSTEM_SLEEF \ USE_SYSTEM_ONNX # see other USE_SYSTEM_xx in CMakeLists.txt +CMAKE_ON+= ONNX_USE_LITE_PROTO # workaround for the protobuf-related failure described here: https://github.com/onnx/optimizer/issues/38 CMAKE_ARGS= -DPSIMD_SOURCE_DIR=${WRKSRC}/third_party/psimd \ - -DFREEBSD_PYTHON_VER=${PYTHON_VER} + -DPYTHON_EXECUTABLE=${PYTHON_CMD} MAKE_ENV= USE_NINJA=no # ninja breaks for some reason LDFLAGS+= -lexecinfo diff --git a/misc/pytorch/distinfo b/misc/pytorch/distinfo index 654de6ea7ac3..f9ee9b1e6a74 100644 --- a/misc/pytorch/distinfo +++ b/misc/pytorch/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1697035721 -SHA256 (pytorch/pytorch-v2.1.0.tar.gz) = 631c71f7f7d6174952f35b5ed4a45ec115720a4ef3eb619678de5893af54f403 -SIZE (pytorch/pytorch-v2.1.0.tar.gz) = 283041980 +TIMESTAMP = 1703580494 +SHA256 (pytorch/pytorch-v2.1.2.tar.gz) = 85effbcce037bffa290aea775c9a4bad5f769cb229583450c40055501ee1acd7 +SIZE (pytorch/pytorch-v2.1.2.tar.gz) = 282894457 diff --git a/misc/pytorch/files/patch-CMakeLists.txt b/misc/pytorch/files/patch-CMakeLists.txt index 9ebebccbf2e3..1bd4dc09bcbd 100644 --- a/misc/pytorch/files/patch-CMakeLists.txt +++ b/misc/pytorch/files/patch-CMakeLists.txt @@ -1,6 +1,6 @@ ---- CMakeLists.txt.orig 2023-04-03 19:45:59 UTC +--- CMakeLists.txt.orig 2023-12-15 02:03:27 UTC +++ CMakeLists.txt -@@ -138,7 +138,7 @@ endif() +@@ -139,7 +139,7 @@ set(CPU_INTEL OFF) set(CPU_AARCH64 OFF) set(CPU_INTEL OFF) @@ -9,7 +9,7 @@ set(CPU_INTEL ON) elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64)") set(CPU_AARCH64 ON) -@@ -163,7 +163,7 @@ include(CMakeDependentOption) +@@ -164,7 +164,7 @@ option(BUILD_DOCS "Build Caffe2 documentation" OFF) option(ATEN_NO_TEST "Do not build ATen test binaries" OFF) option(BUILD_BINARY "Build C++ binaries" OFF) option(BUILD_DOCS "Build Caffe2 documentation" OFF) @@ -18,7 +18,7 @@ option(BUILD_PYTHON "Build Python binaries" ON) option(BUILD_CAFFE2 "Master flag to build Caffe2" OFF) option(BUILD_LITE_INTERPRETER "Master flag to build Lite Interpreter" OFF) -@@ -398,15 +398,15 @@ endif() +@@ -408,15 +408,15 @@ option(USE_SYSTEM_CPUINFO "Use system-provided cpuinfo # USE_SYSTEM_LIBS being "OFF". option(USE_SYSTEM_LIBS "Use all available system-provided libraries." OFF) option(USE_SYSTEM_CPUINFO "Use system-provided cpuinfo." OFF) @@ -35,5 +35,33 @@ -option(USE_SYSTEM_ONNX "Use system-provided onnx." OFF) +option(USE_SYSTEM_ONNX "Use system-provided onnx." ON) option(USE_SYSTEM_XNNPACK "Use system-provided xnnpack." OFF) + option(USE_SYSTEM_ZSTD "Use system-provided zstd." OFF) option(USE_GOLD_LINKER "Use ld.gold to link" OFF) - if(USE_SYSTEM_LIBS) +@@ -817,11 +817,11 @@ if(NOT MSVC) + # Details at http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1459 + string(APPEND CMAKE_CXX_FLAGS " -Wall") + string(APPEND CMAKE_CXX_FLAGS " -Wextra") +- append_cxx_flag_if_supported("-Werror=return-type" CMAKE_CXX_FLAGS) +- append_cxx_flag_if_supported("-Werror=non-virtual-dtor" CMAKE_CXX_FLAGS) +- append_cxx_flag_if_supported("-Werror=braced-scalar-init" CMAKE_CXX_FLAGS) +- append_cxx_flag_if_supported("-Werror=range-loop-construct" CMAKE_CXX_FLAGS) +- append_cxx_flag_if_supported("-Werror=bool-operation" CMAKE_CXX_FLAGS) ++ #append_cxx_flag_if_supported("-Werror=return-type" CMAKE_CXX_FLAGS) ++ #append_cxx_flag_if_supported("-Werror=non-virtual-dtor" CMAKE_CXX_FLAGS) ++ #append_cxx_flag_if_supported("-Werror=braced-scalar-init" CMAKE_CXX_FLAGS) ++ #append_cxx_flag_if_supported("-Werror=range-loop-construct" CMAKE_CXX_FLAGS) ++ #append_cxx_flag_if_supported("-Werror=bool-operation" CMAKE_CXX_FLAGS) + append_cxx_flag_if_supported("-Wnarrowing" CMAKE_CXX_FLAGS) + append_cxx_flag_if_supported("-Wno-missing-field-initializers" CMAKE_CXX_FLAGS) + append_cxx_flag_if_supported("-Wno-type-limits" CMAKE_CXX_FLAGS) +@@ -917,8 +917,8 @@ if(NOT MSVC) + string(APPEND CMAKE_LINKER_FLAGS_DEBUG " -fno-omit-frame-pointer -O0") + append_cxx_flag_if_supported("-fno-math-errno" CMAKE_CXX_FLAGS) + append_cxx_flag_if_supported("-fno-trapping-math" CMAKE_CXX_FLAGS) +- append_cxx_flag_if_supported("-Werror=format" CMAKE_CXX_FLAGS) +- append_cxx_flag_if_supported("-Werror=cast-function-type" CMAKE_CXX_FLAGS) ++ #append_cxx_flag_if_supported("-Werror=format" CMAKE_CXX_FLAGS) ++ #append_cxx_flag_if_supported("-Werror=cast-function-type" CMAKE_CXX_FLAGS) + else() + # skip unwanted includes from windows.h + add_compile_definitions(WIN32_LEAN_AND_MEAN) diff --git a/misc/pytorch/files/patch-aten_src_ATen_native_sparse_ValidateCompressedIndicesCommon.h b/misc/pytorch/files/patch-aten_src_ATen_native_sparse_ValidateCompressedIndicesCommon.h index 70dc6fbd61e2..e4cdf08b4ff3 100644 --- a/misc/pytorch/files/patch-aten_src_ATen_native_sparse_ValidateCompressedIndicesCommon.h +++ b/misc/pytorch/files/patch-aten_src_ATen_native_sparse_ValidateCompressedIndicesCommon.h @@ -1,6 +1,6 @@ ---- aten/src/ATen/native/sparse/ValidateCompressedIndicesCommon.h.orig 2023-05-07 08:51:40 UTC +--- aten/src/ATen/native/sparse/ValidateCompressedIndicesCommon.h.orig 2023-12-15 02:03:27 UTC +++ aten/src/ATen/native/sparse/ValidateCompressedIndicesCommon.h -@@ -39,7 +39,7 @@ namespace { +@@ -40,7 +40,7 @@ INVARIANT_CHECK_FUNC_API // use `cidx/idx` to refer to `compressed_indices/plain_indices` respectively. INVARIANT_CHECK_FUNC_API @@ -9,7 +9,7 @@ #ifdef GPUCC CUDA_KERNEL_ASSERT(cond && message); #else -@@ -57,9 +57,9 @@ INVARIANT_CHECK_FUNC_API _check_first_cidx_is_zero( +@@ -58,9 +58,9 @@ INVARIANT_CHECK_FUNC_API _check_first_cidx_is_zero( const index_t& zero) { const bool invariant = cidx == zero; if (cdim_name == CDimName::CRow) { @@ -21,7 +21,7 @@ } } -@@ -71,9 +71,9 @@ INVARIANT_CHECK_FUNC_API _check_last_cidx_is_nnz( +@@ -72,9 +72,9 @@ INVARIANT_CHECK_FUNC_API _check_last_cidx_is_nnz( const index_t& nnz) { const bool invariant = cidx == nnz; if (cdim_name == CDimName::CRow) { @@ -33,7 +33,7 @@ } } -@@ -88,11 +88,11 @@ INVARIANT_CHECK_FUNC_API _check_cidx_nondecreasing_loc +@@ -89,11 +89,11 @@ INVARIANT_CHECK_FUNC_API _check_cidx_nondecreasing_loc const auto s_cidx = cidx_next - cidx; const bool invariant = zero <= s_cidx && s_cidx <= dim; if (cdim_name == CDimName::CRow) { @@ -47,7 +47,7 @@ invariant, "`0 <= ccol_indices[..., 1:] - ccol_indices[..., :-1] <= nrows` is not satisfied."); } -@@ -107,9 +107,9 @@ INVARIANT_CHECK_FUNC_API _check_idx_bounds( +@@ -108,9 +108,9 @@ INVARIANT_CHECK_FUNC_API _check_idx_bounds( const index_t& dim) { const bool invariant = zero <= idx && idx < dim; if (cdim_name == CDimName::CRow) { @@ -59,7 +59,7 @@ } } -@@ -128,14 +128,14 @@ INVARIANT_CHECK_FUNC_API _check_idx_sorted_distinct_va +@@ -129,14 +129,14 @@ INVARIANT_CHECK_FUNC_API _check_idx_sorted_distinct_va for (auto* RESTRICT curr = slice_begin + 1; curr < slice_end; ++curr) { const auto invariant = *(curr - 1) < *curr; if (cdim_name == CDimName::CRow) {