1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

misc/pytorch: update 2.3.1 → 2.4.1

This commit is contained in:
Yuri Victorovich 2024-10-04 02:15:10 -07:00
parent 00e78fcbe4
commit bc8f866013
7 changed files with 181 additions and 737 deletions

View File

@ -1,7 +1,6 @@
PORTNAME= pytorch
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.1
PORTREVISION= 6
DISTVERSION= 2.4.1
CATEGORIES= misc # machine-learning
MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/
DIST_SUBDIR= ${PORTNAME}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1718421830
SHA256 (pytorch/pytorch-v2.3.1.tar.gz) = 6c66b59345091907cd62a693b647cee224558e7f15a9b04f4f322f4f6ffeb75b
SIZE (pytorch/pytorch-v2.3.1.tar.gz) = 277997681
TIMESTAMP = 1727986762
SHA256 (pytorch/pytorch-v2.4.1.tar.gz) = 39666a43c0c10f5fd46c1a7ca95dc74d3bc39de2678b70066481cbf02e58384f
SIZE (pytorch/pytorch-v2.4.1.tar.gz) = 296932555

View File

@ -1,6 +1,6 @@
--- CMakeLists.txt.orig 2024-01-31 00:58:01 UTC
--- CMakeLists.txt.orig 2024-09-04 20:01:18 UTC
+++ CMakeLists.txt
@@ -145,7 +145,7 @@ set(CPU_INTEL OFF)
@@ -181,7 +181,7 @@ set(CPU_INTEL OFF)
set(CPU_AARCH64 OFF)
set(CPU_INTEL OFF)
@ -9,16 +9,16 @@
set(CPU_INTEL ON)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64)")
set(CPU_AARCH64 ON)
@@ -170,7 +170,7 @@ option(BUILD_DOCS "Build Caffe2 documentation" OFF)
option(ATEN_NO_TEST "Do not build ATen test binaries" OFF)
@@ -210,7 +210,7 @@ option(BUILD_CUSTOM_PROTOBUF
option(BUILD_BINARY "Build C++ binaries" OFF)
option(BUILD_DOCS "Build Caffe2 documentation" OFF)
-option(BUILD_CUSTOM_PROTOBUF "Build and use Caffe2's own protobuf under third_party" ON)
+option(BUILD_CUSTOM_PROTOBUF "Build and use Caffe2's own protobuf under third_party" OFF)
option(BUILD_CUSTOM_PROTOBUF
- "Build and use Caffe2's own protobuf under third_party" ON)
+ "Build and use Caffe2's own protobuf under third_party" OFF)
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)
@@ -405,15 +405,15 @@ option(USE_SYSTEM_CPUINFO "Use system-provided cpuinfo
option(BUILD_SHARED_LIBS "Build libcaffe2.so" ON)
@@ -451,15 +451,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,9 +35,9 @@
-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)
@@ -838,11 +838,11 @@ if(NOT MSVC)
if(USE_SYSTEM_LIBS)
@@ -971,11 +971,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")
@ -52,5 +52,5 @@
+ #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)
append_cxx_flag_if_supported("-Wno-missing-field-initializers"
CMAKE_CXX_FLAGS)

View File

@ -1,11 +0,0 @@
--- 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
@@ -265,7 +265,7 @@ static_assert( (public)
}
return b;
}
- Vectorized<T> map(const __m256 (*const vop)(__m256)) const {
+ Vectorized<T> map(__m256 (*const vop)(__m256)) const {
__m256 lo, hi;
cvt_to_fp32<T>(values, lo, hi);
const auto o1 = vop(lo);

View File

@ -1,11 +0,0 @@
--- aten/src/ATen/cpu/vec/vec512/vec512_bfloat16.h.orig 2023-10-12 12:54:40 UTC
+++ aten/src/ATen/cpu/vec/vec512/vec512_bfloat16.h
@@ -345,7 +345,7 @@ static_assert( (public)
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wignored-qualifiers"
- Vectorized<T> map(const __m512 (*const vop)(__m512)) const {
+ Vectorized<T> map(__m512 (*const vop)(__m512)) const {
__m512 lo, hi;
cvt_to_fp32<T>(values, lo, hi);
const auto o1 = vop(lo);

View File

@ -1,8 +0,0 @@
--- caffe2/proto/CMakeLists.txt.orig 2023-05-08 19:58:16 UTC
+++ caffe2/proto/CMakeLists.txt
@@ -1,3 +1,5 @@
+set(CMAKE_CXX_STANDARD 17)
+
if(BUILD_CAFFE2)
file(GLOB Caffe2_PROTOBUF_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.proto")
else()

File diff suppressed because it is too large Load Diff