1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

misc/py-pytorch: update 2.0.1 → 2.1.0

PR:	274514
This commit is contained in:
Wen Heping 2023-10-16 19:25:49 -07:00 committed by Yuri Victorovich
parent 8933023394
commit 50936df61c
5 changed files with 23 additions and 24 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= pytorch
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.1
DISTVERSION= 2.1.0
CATEGORIES= misc # machine-learning
MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -60,7 +60,6 @@ post-install: # strip binaries
@${STRIP_CMD} \
${STAGEDIR}${PYTHON_SITELIBDIR}/torch/bin/torch_shm_manager \
${STAGEDIR}${PYTHON_SITELIBDIR}/torch/_C${PYTHON_EXT_SUFFIX}.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/torch/_C_flatbuffer${PYTHON_EXT_SUFFIX}.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/functorch/_C${PYTHON_EXT_SUFFIX}.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/torch/lib/lib*.so

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1691477737
SHA256 (pytorch/pytorch-v2.0.1.tar.gz) = 9c564ca440265c69400ef5fdd48bf15e28af5aa4bed84c95efaad960a6699998
SIZE (pytorch/pytorch-v2.0.1.tar.gz) = 276717260
TIMESTAMP = 1697035721
SHA256 (pytorch/pytorch-v2.1.0.tar.gz) = 631c71f7f7d6174952f35b5ed4a45ec115720a4ef3eb619678de5893af54f403
SIZE (pytorch/pytorch-v2.1.0.tar.gz) = 283041980

View File

@ -1,11 +1,11 @@
--- aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h.orig 2023-05-07 16:59:15 UTC
--- 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
@@ -206,7 +206,7 @@ template <> class Vectorized<BFloat16> { (public)
@@ -266,7 +266,7 @@ static_assert( (public)
}
return b;
}
- Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
+ Vectorized<BFloat16> map(__m256 (*const vop)(__m256)) const {
- Vectorized<T> map(const __m256 (*const vop)(__m256)) const {
+ Vectorized<T> map(__m256 (*const vop)(__m256)) const {
__m256 lo, hi;
cvtbf16_fp32(values, lo, hi);
cvt_to_fp32<T>(values, lo, hi);
const auto o1 = vop(lo);

View File

@ -1,11 +1,11 @@
--- aten/src/ATen/cpu/vec/vec512/vec512_bfloat16.h.orig 2023-05-07 17:07:36 UTC
--- 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
@@ -283,7 +283,7 @@ template <> class Vectorized<BFloat16> { (public)
@@ -345,7 +345,7 @@ static_assert( (public)
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wignored-qualifiers"
- Vectorized<BFloat16> map(const __m512 (*const vop)(__m512)) const {
+ Vectorized<BFloat16> map(__m512 (*const vop)(__m512)) const {
- Vectorized<T> map(const __m512 (*const vop)(__m512)) const {
+ Vectorized<T> map(__m512 (*const vop)(__m512)) const {
__m512 lo, hi;
cvtbf16_fp32(values, lo, hi);
cvt_to_fp32<T>(values, lo, hi);
const auto o1 = vop(lo);

View File

@ -1,6 +1,6 @@
--- third_party/cpuinfo/CMakeLists.txt.orig 2023-04-03 19:46:00 UTC
--- third_party/cpuinfo/CMakeLists.txt.orig 2023-10-16 12:32:17 UTC
+++ third_party/cpuinfo/CMakeLists.txt
@@ -65,7 +65,7 @@ IF(NOT CMAKE_SYSTEM_PROCESSOR)
@@ -77,7 +77,7 @@ IF(NOT CMAKE_SYSTEM_PROCESSOR)
"cpuinfo will compile, but cpuinfo_initialize() will always fail.")
SET(CPUINFO_SUPPORTED_PLATFORM FALSE)
ENDIF()
@ -9,16 +9,16 @@
MESSAGE(WARNING
"Target processor architecture \"${CPUINFO_TARGET_PROCESSOR}\" is not supported in cpuinfo. "
"cpuinfo will compile, but cpuinfo_initialize() will always fail.")
@@ -77,7 +77,7 @@ IF(NOT CMAKE_SYSTEM_NAME)
@@ -89,7 +89,7 @@ IF(NOT CMAKE_SYSTEM_NAME)
"Target operating system is not specified. "
"cpuinfo will compile, but cpuinfo_initialize() will always fail.")
SET(CPUINFO_SUPPORTED_PLATFORM FALSE)
-ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Windows|CYGWIN|MSYS|Darwin|Linux|Android)$")
+ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Windows|CYGWIN|MSYS|Darwin|Linux|FreeBSD|Android)$")
-ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Windows|WindowsStore|CYGWIN|MSYS|Darwin|Linux|Android)$")
+ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Windows|WindowsStore|CYGWIN|MSYS|Darwin|Linux|FreeBSD|Android)$")
IF(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14" AND NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
MESSAGE(WARNING
"Target operating system \"${CMAKE_SYSTEM_NAME}\" is not supported in cpuinfo. "
@@ -123,7 +123,7 @@ SET(CPUINFO_SRCS
@@ -135,7 +135,7 @@ IF(CPUINFO_SUPPORTED_PLATFORM)
src/cache.c)
IF(CPUINFO_SUPPORTED_PLATFORM)
@ -27,7 +27,7 @@
LIST(APPEND CPUINFO_SRCS
src/x86/init.c
src/x86/info.c
@@ -324,7 +324,7 @@ ENDIF()
@@ -341,7 +341,7 @@ IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_MOCK_T
# ---[ cpuinfo mock library and mock tests
IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_MOCK_TESTS)
SET(CPUINFO_MOCK_SRCS "${CPUINFO_SRCS}")
@ -36,7 +36,7 @@
LIST(APPEND CPUINFO_MOCK_SRCS src/x86/mockcpuid.c)
ENDIF()
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
@@ -768,7 +768,7 @@ IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_UNIT_T
@@ -785,7 +785,7 @@ IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_UNIT_T
ADD_TEST(NAME get-current-test COMMAND get-current-test)
ENDIF()
@ -45,7 +45,7 @@
ADD_EXECUTABLE(brand-string-test test/name/brand-string.cc)
CPUINFO_TARGET_ENABLE_CXX11(brand-string-test)
CPUINFO_TARGET_RUNTIME_LIBRARY(brand-string-test)
@@ -835,7 +835,7 @@ IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_TOOLS)
@@ -852,7 +852,7 @@ IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_TOOLS)
CPUINFO_TARGET_RUNTIME_LIBRARY(cpuinfo-dump)
ENDIF()