Bug 274859 - misc/pytorch: Update to 2.1.0
Summary: misc/pytorch: Update to 2.1.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks: 275071
  Show dependency treegraph
 
Reported: 2023-11-02 00:41 UTC by Po-Chuan Hsieh
Modified: 2023-11-27 10:48 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-11-02 00:41:53 UTC
misc/pytorch: Update to 2.1.0

- Add LICENSE_FILE
- Remove PYTHON_EXECUTABLE which is set by USES=python now
- Comment BROKEN_* temporarily to see if the new version builds

Changes:        https://github.com/pytorch/pytorch/releases
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-11-02 00:42:09 UTC
Patch: https://people.FreeBSD.org/~sunpoet/patch/misc-pytorch.txt

It is required for devel/protobuf 24.4 update.
The files/ directory is taken from misc/py-pytorch.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-11-27 10:46:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dbe851cc291bde43def88e727615619c64c2117c

commit dbe851cc291bde43def88e727615619c64c2117c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-27 10:09:26 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-27 10:30:09 +0000

    misc/pytorch: Update to 2.1.0

    - Add LICENSE_FILE
    - Remove PYTHON_EXECUTABLE which is set by USES=python now
    - Comment BROKEN_* temporarily to see if the new version builds

    Changes:        https://github.com/pytorch/pytorch/releases
    PR:             274859
    Approved by:    maintainer (timeout, 25 days)

 misc/pytorch/Makefile                              |  19 +-
 misc/pytorch/distinfo                              |   6 +-
 .../patch-aten_src_ATen_native_SoftMax.cpp (gone)  |  11 -
 ...native_sparse_ValidateCompressedIndicesCommon.h |  82 ++-
 ...c_ATen_native_transformers_attention.cpp (gone) |  11 -
 misc/pytorch/files/patch-cmake_Dependencies.cmake  |  17 +-
 .../patch-third__party_cpuinfo_CMakeLists.txt      |  53 +-
 ...hird__party_kineto_libkineto_src_ThreadUtil.cpp |   4 +-
 misc/pytorch/pkg-plist                             | 784 ++++++++++++++-------
 9 files changed, 637 insertions(+), 350 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-11-27 10:46:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=96da84adbff54be3917b922df418b037d2fc0cc6

commit 96da84adbff54be3917b922df418b037d2fc0cc6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-27 10:45:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-27 10:45:51 +0000

    misc/pytorch: Update to 2.1.0

    - Add LICENSE_FILE
    - Remove PYTHON_EXECUTABLE which is set by USES=python now
    - Comment BROKEN_* temporarily to see if the new version builds

    Changes:        https://github.com/pytorch/pytorch/releases
    PR:             274859
    Approved by:    maintainer (timeout, 25 days)

 misc/pytorch/files/patch-CMakeLists.txt (new)      | 39 ++++++++++++++++++++++
 ...rc_ATen_cpu_vec_vec256_vec256__bfloat16.h (new) | 11 ++++++
 ...rc_ATen_cpu_vec_vec512_vec512__bfloat16.h (new) | 11 ++++++
 .../files/patch-c10_core_DynamicCast.h (new)       | 21 ++++++++++++
 .../files/patch-caffe2_CMakeLists.txt (new)        | 11 ++++++
 .../files/patch-caffe2_proto_CMakeLists.txt (new)  |  8 +++++
 6 files changed, 101 insertions(+)
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-11-27 10:48:14 UTC
Committed. Thanks!