Skip to content

Commit 619d31d

Browse files
committed
py-pytorch: Update to version 2.9.1
* Update to version 2.9.1 * Add necessary `libunwind` dependency * Limit jobs for parallel builds
1 parent 58dd760 commit 619d31d

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

python/py-pytorch/Portfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PortGroup github 1.0
55
PortGroup mpi 1.0
66
PortGroup python 1.0
77

8-
github.setup pytorch pytorch 2.9.0 v
8+
github.setup pytorch pytorch 2.9.1 v
99
revision 0
1010
name py-${github.project}
1111
license BSD
@@ -28,9 +28,9 @@ homepage https://pytorch.org/
2828

2929
distname pytorch-${github.tag_prefix}${version}
3030

31-
checksums rmd160 6a7d6c672857538b2ea9666db956b0bc4c438fbb \
32-
sha256 c6980af3c0ea311f49f90987982be715e4d702539fea41e52f55ad7f0b105dc3 \
33-
size 348802387
31+
checksums rmd160 ae9ad700158e83a139d39bc2f3df11936fedb524 \
32+
sha256 e17504700ebc4c87f9b57059df1c4d790b769458c04db144c7a92aea90f2c92b \
33+
size 348810776
3434

3535
python.versions 310 311 312 313
3636

@@ -105,6 +105,7 @@ if {${name} ne ${subport}} {
105105
port:gflags \
106106
port:google-glog \
107107
port:libomp \
108+
port:libunwind \
108109
port:protobuf3-cpp \
109110
port:py${python.version}-click \
110111
port:py${python.version}-future \
@@ -158,7 +159,17 @@ if {${name} ne ${subport}} {
158159
configure.cppflags-append \
159160
-I${prefix}/include/libomp
160161

161-
configure.ccache yes
162+
configure.ccache no
163+
164+
# Limit cores for parallel builds
165+
# Note: parallel builds observed to fail on 8, 24 cores
166+
use_parallel_build yes
167+
set max_build_jobs 4
168+
if {[option build.jobs] < ${max_build_jobs}} {
169+
set max_build_jobs [option build.jobs]
170+
}
171+
build.env-append \
172+
CMAKE_BUILD_PARALLEL_LEVEL=${max_build_jobs}
162173

163174
build.env-append \
164175
CMAKE_LIBRARY_PATH=${prefix}/lib:${prefix}/lib/libomp \

0 commit comments

Comments
 (0)