From nobody Wed Apr 24 21:25:53 2024 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 4VPsV93nhPz5J7Vy; Wed, 24 Apr 2024 21:25:53 +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 4VPsV93J8mz4Skc; Wed, 24 Apr 2024 21:25:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713993953; 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=TA7PjRtuIYWsaWtnl+werMVVmJ5yf/K1wPDlwd4yoN0=; b=fW0xpEhPjGfOZ/T5mejPXSzlWkS6KQCr3n/npbuQ1SSY9XpUU/ncNTLhb2FO7S7eKQ9yj7 blrem3GwIMVlOOC/H3tr9slvjoPVDBklGKMNmBJYb5ciRDQJXnYZ5v7qb7sxrVKXLSEegR K/yBiLS9y0cOAmgkbFQav0XlfFiYDtZv50hu91sxt5mskoMkK6KynyU0R5zrQOeuDRTspW bXdtHDWYwDGugYEkQVkkd7WRDlmPUjoFpCXqzmUxlSjOWfZtY+0GWrvtC++8uc5If6mJUP uvAP1aecXKFGJu3qAmWOaBEWRbK5uUwhAJMmxwyKtuYhvRSal2tSS/ErblLwQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713993953; a=rsa-sha256; cv=none; b=bkc8Y3dwWMyeJGsLQFIB3rH0fv/tRityvhJ/F9gknSMyhXj9meN7yPFxweSs61UBTTinnd dbquHSr/LDEUNnp/r2IIeT0CB5jtEB3+qw6sqOJ9Vs+/2dcwZowIe23FHYmMl10rL1+6zg BrkAjTwIPTn0U7FXTPEKh8pMzwoRujTQtGsUJ19rSqrUo0VigZUANo8bk6miCJKEP4rdvv bOEZsX/UUdOEAwSFvW3KMXSXE9Cx3woxZkos1V5ZAxzI8LiYT49zGVRxW4aCheEUlRaQtd WtOWgTNvtBfYnu9RNrMwqmlV27JJX7Tmw6ftjNZ2NZhRfPYP7tmdj/bH6f9YoQ== 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=1713993953; 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=TA7PjRtuIYWsaWtnl+werMVVmJ5yf/K1wPDlwd4yoN0=; b=vG1JNrH9n0jYrc3l7elT8RNkDQz5Gdq4wuF5xi1vBrGunXoD6cO1VWourKUhY+QeqKsc1F lj0pepapUAxFBihfrJa0MuhjUtolRZccl7QeeSydRPIU5csvNpyndcXSKdek3W8wAwftPh EzLXs4PWybgkLWWZd7Zk4LTnKRqH2aTHPefqo5VFuDmerOGIPt5ivly2+SZcuEfSH2W7Ur SMcPQN0rf87oyxkygY62nUlFUVIv/RGD/+jLzUBF3dXs+yg+IuLCv4oNu/ddADhjzDFcSb jOWIPUvIWSK3UdcjCV7fzvXdiRPZjr4yjTgkpzcxA0J0qljgMRwLlEkFhpvlSg== 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 4VPsV92vcnzXKc; Wed, 24 Apr 2024 21:25:53 +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 43OLPrEr085566; Wed, 24 Apr 2024 21:25:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43OLPrYj085563; Wed, 24 Apr 2024 21:25:53 GMT (envelope-from git) Date: Wed, 24 Apr 2024 21:25:53 GMT Message-Id: <202404242125.43OLPrYj085563@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: fe3c71c53ce4 - main - misc/pytorch: update 2.2.1 =?utf-8?Q?=E2=86=92?= 2.2.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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: fe3c71c53ce493d33cf35829db0c41f113464256 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=fe3c71c53ce493d33cf35829db0c41f113464256 commit fe3c71c53ce493d33cf35829db0c41f113464256 Author: Yuri Victorovich AuthorDate: 2024-04-24 21:20:33 +0000 Commit: Yuri Victorovich CommitDate: 2024-04-24 21:25:48 +0000 misc/pytorch: update 2.2.1 → 2.2.2 --- misc/pytorch/Makefile | 4 +++- misc/pytorch/distinfo | 6 +++--- ...aten_src_ATen_cpu_vec_vec256_vec256__bfloat16.h | 4 ++-- misc/pytorch/files/patch-cmake_Dependencies.cmake | 21 +++++++++++++++++- ...ch-third__party_kineto_libkineto_CMakeLists.txt | 11 ++++++++++ misc/pytorch/pkg-plist | 25 +++------------------- 6 files changed, 42 insertions(+), 29 deletions(-) diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile index 6954c1d2872c..780bdba53a62 100644 --- a/misc/pytorch/Makefile +++ b/misc/pytorch/Makefile @@ -1,6 +1,6 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v -DISTVERSION= 2.2.1 +DISTVERSION= 2.2.2 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ DIST_SUBDIR= ${PORTNAME} @@ -66,6 +66,8 @@ post-patch: @cd ${WRKSRC} && for f in $$(${GREP} -rl "include " * | ${GREP} -E "\.(c|cpp|h|hpp)$$"); do \ ${REINPLACE_CMD} -i'' -E "s|include |include |" $$f; \ done + # remove bundled fmt + @${RM} -r ${WRKSRC}/third_party/fmt post-install: # functorch.so is installed back into the source directory, see https://github.com/pytorch/pytorch/issues/91524 diff --git a/misc/pytorch/distinfo b/misc/pytorch/distinfo index 540cab721e03..cdcc31006860 100644 --- a/misc/pytorch/distinfo +++ b/misc/pytorch/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1708789079 -SHA256 (pytorch/pytorch-v2.2.1.tar.gz) = 8069467387b8ab7a7279671b9144d80a5c5342b4fa022eb3c1db629a6fd806c9 -SIZE (pytorch/pytorch-v2.2.1.tar.gz) = 287453242 +TIMESTAMP = 1713844760 +SHA256 (pytorch/pytorch-v2.2.2.tar.gz) = 57a1136095bdfe769acb87876dce77212da2c995c61957a67a1f16172d235d17 +SIZE (pytorch/pytorch-v2.2.2.tar.gz) = 288213626 diff --git a/misc/pytorch/files/patch-aten_src_ATen_cpu_vec_vec256_vec256__bfloat16.h b/misc/pytorch/files/patch-aten_src_ATen_cpu_vec_vec256_vec256__bfloat16.h index 5923cd93c2cd..e03ac51d837b 100644 --- a/misc/pytorch/files/patch-aten_src_ATen_cpu_vec_vec256_vec256__bfloat16.h +++ b/misc/pytorch/files/patch-aten_src_ATen_cpu_vec_vec256_vec256__bfloat16.h @@ -1,6 +1,6 @@ ---- aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h.orig 2023-10-12 12:49:42 UTC +--- aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h.orig 2024-03-27 22:28:51 UTC +++ aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h -@@ -266,7 +266,7 @@ static_assert( (public) +@@ -265,7 +265,7 @@ static_assert( (public) } return b; } diff --git a/misc/pytorch/files/patch-cmake_Dependencies.cmake b/misc/pytorch/files/patch-cmake_Dependencies.cmake index 0b1436e51889..7a37b5cd8c6c 100644 --- a/misc/pytorch/files/patch-cmake_Dependencies.cmake +++ b/misc/pytorch/files/patch-cmake_Dependencies.cmake @@ -1,4 +1,4 @@ ---- cmake/Dependencies.cmake.orig 2023-05-08 19:58:16 UTC +--- cmake/Dependencies.cmake.orig 2024-03-27 22:28:51 UTC +++ cmake/Dependencies.cmake @@ -1,3 +1,5 @@ +set(CMAKE_CXX_STANDARD 17) @@ -6,3 +6,22 @@ # RPATH stuff # see https://cmake.org/Wiki/CMake_RPATH_handling if(APPLE) +@@ -1796,7 +1798,8 @@ set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared lib + # + set(TEMP_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) + set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libs" FORCE) +-add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/fmt) ++#add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/fmt) ++find_package(fmt REQUIRED) + + # Disable compiler feature checks for `fmt`. + # +@@ -1805,7 +1808,7 @@ add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/fmt + # CMAKE_CXX_FLAGS in ways that break feature checks. Since we already know + # `fmt` is compatible with a superset of the compilers that PyTorch is, it + # shouldn't be too bad to just disable the checks. +-set_target_properties(fmt-header-only PROPERTIES INTERFACE_COMPILE_FEATURES "") ++#set_target_properties(fmt-header-only PROPERTIES INTERFACE_COMPILE_FEATURES "") + + list(APPEND Caffe2_DEPENDENCY_LIBS fmt::fmt-header-only) + set(BUILD_SHARED_LIBS ${TEMP_BUILD_SHARED_LIBS} CACHE BOOL "Build shared libs" FORCE) diff --git a/misc/pytorch/files/patch-third__party_kineto_libkineto_CMakeLists.txt b/misc/pytorch/files/patch-third__party_kineto_libkineto_CMakeLists.txt new file mode 100644 index 000000000000..c55703582033 --- /dev/null +++ b/misc/pytorch/files/patch-third__party_kineto_libkineto_CMakeLists.txt @@ -0,0 +1,11 @@ +--- third_party/kineto/libkineto/CMakeLists.txt.orig 2024-04-24 18:15:39 UTC ++++ third_party/kineto/libkineto/CMakeLists.txt +@@ -111,7 +111,7 @@ target_compile_options(kineto_api PRIVATE "${KINETO_CO + target_compile_options(kineto_base PRIVATE "${KINETO_COMPILE_OPTIONS}") + target_compile_options(kineto_api PRIVATE "${KINETO_COMPILE_OPTIONS}") + +-if(NOT TARGET fmt) ++if(NOT TARGET fmt::fmt) + if(NOT FMT_SOURCE_DIR) + set(FMT_SOURCE_DIR "${LIBKINETO_THIRDPARTY_DIR}/fmt" + CACHE STRING "fmt source directory from submodules") diff --git a/misc/pytorch/pkg-plist b/misc/pytorch/pkg-plist index 86f09e343366..0c609f56a2fa 100644 --- a/misc/pytorch/pkg-plist +++ b/misc/pytorch/pkg-plist @@ -8203,19 +8203,6 @@ include/dnnl_threadpool.hpp include/dnnl_threadpool_iface.hpp include/dnnl_types.h include/dnnl_version.h -include/fmt/args.h -include/fmt/chrono.h -include/fmt/color.h -include/fmt/compile.h -include/fmt/core.h -include/fmt/format-inl.h -include/fmt/format.h -include/fmt/os.h -include/fmt/ostream.h -include/fmt/printf.h -include/fmt/ranges.h -include/fmt/std.h -include/fmt/xchar.h include/fp16.h include/fp16/__init__.py include/fp16/avx.py @@ -9183,18 +9170,13 @@ lib/cmake/dnnl/dnnl-config-version.cmake lib/cmake/dnnl/dnnl-config.cmake lib/cmake/dnnl/dnnl-targets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/dnnl/dnnl-targets.cmake -lib/cmake/fmt/fmt-config-version.cmake -lib/cmake/fmt/fmt-config.cmake -lib/cmake/fmt/fmt-targets-%%CMAKE_BUILD_TYPE%%.cmake -lib/cmake/fmt/fmt-targets.cmake -%%AMD64%%lib/libCaffe2_perfkernels_avx.a -%%AMD64%%lib/libCaffe2_perfkernels_avx2.a -%%AMD64%%lib/libCaffe2_perfkernels_avx512.a +lib/libCaffe2_perfkernels_avx.a +lib/libCaffe2_perfkernels_avx2.a +lib/libCaffe2_perfkernels_avx512.a lib/libc10.so lib/libclog.a lib/libcpuinfo.a lib/libdnnl.a -lib/libfmt.a lib/libkineto.a lib/libshm.so lib/libtorch.so @@ -9203,7 +9185,6 @@ lib/libtorch_global_deps.so lib/libtorch_python.so %%PYTHON_SITELIBDIR%%/caffe2/proto/caffe2_pb2.py %%PYTHON_SITELIBDIR%%/caffe2/proto/torch_pb2.py -libdata/pkgconfig/fmt.pc libdata/pkgconfig/libcpuinfo.pc share/ATen/Declarations.yaml share/cmake/ATen/ATenConfig.cmake