Skip to content

Commit 21af710

Browse files
Bump libtorch
1 parent b26fc13 commit 21af710

File tree

1 file changed

+14
-58
lines changed

1 file changed

+14
-58
lines changed

Makefile

Lines changed: 14 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
VERSION=1.7.0
1+
VERSION=1.8.0
22

33
FILES=libtorch_$(VERSION)+cpu-1_amd64.deb \
4-
libtorch_$(VERSION)+cu92-1_amd64.deb \
5-
libtorch_$(VERSION)+cu101-1_amd64.deb \
64
libtorch_$(VERSION)+cu102-1_amd64.deb \
7-
libtorch_$(VERSION)+cu110-1_amd64.deb \
5+
libtorch_$(VERSION)+cu111-1_amd64.deb \
86
libtorch-$(VERSION)+cpu-1.x86_64.rpm \
9-
libtorch-$(VERSION)+cu92-1.x86_64.rpm \
10-
libtorch-$(VERSION)+cu101-1.x86_64.rpm \
117
libtorch-$(VERSION)+cu102-1.x86_64.rpm \
12-
libtorch-$(VERSION)+cu110-1.x86_64.rpm \
8+
libtorch-$(VERSION)+cu111-1.x86_64.rpm \
139
cpu-libtorch-macos-latest.zip \
1410
cpu-libtorch-cxx11-abi-shared-with-deps-latest.zip \
15-
cu92-libtorch-cxx11-abi-shared-with-deps-latest.zip \
16-
cu101-libtorch-cxx11-abi-shared-with-deps-latest.zip \
1711
cu102-libtorch-cxx11-abi-shared-with-deps-latest.zip \
18-
cu110-libtorch-cxx11-abi-shared-with-deps-latest.zip
12+
cu111-libtorch-cxx11-abi-shared-with-deps-latest.zip
1913

2014
all:$(FILES)
2115

@@ -26,16 +20,10 @@ upload:$(FILES)
2620
cpu-libtorch-cxx11-abi-shared-with-deps-latest.zip: libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cpu.zip
2721
ln -s $< $@
2822

29-
cu92-libtorch-cxx11-abi-shared-with-deps-latest.zip: libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu92.zip
30-
ln -s $< $@
31-
32-
cu101-libtorch-cxx11-abi-shared-with-deps-latest.zip: libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu101.zip
33-
ln -s $< $@
34-
3523
cu102-libtorch-cxx11-abi-shared-with-deps-latest.zip: libtorch-cxx11-abi-shared-with-deps-$(VERSION).zip
3624
ln -s $< $@
3725

38-
cu110-libtorch-cxx11-abi-shared-with-deps-latest.zip: libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu110.zip
26+
cu111-libtorch-cxx11-abi-shared-with-deps-latest.zip: libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu111.zip
3927
ln -s $< $@
4028

4129
cpu-libtorch-macos-latest.zip: libtorch-macos-$(VERSION).zip
@@ -64,38 +52,6 @@ libtorch-$(VERSION)+cpu-1.x86_64.rpm:libtorch-$(VERSION)+cpu.tgz
6452
libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu92.zip:
6553
wget -c https://download.pytorch.org/libtorch/cu92/libtorch-cxx11-abi-shared-with-deps-$(VERSION)%2Bcu92.zip
6654

67-
libtorch-$(VERSION)+cu92.tgz:libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu92.zip
68-
rm -rf libtorch usr/
69-
unzip libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu92.zip
70-
mkdir -p usr
71-
cp -r libtorch/* usr/
72-
cd usr/include/torch; for i in csrc/api/include/torch/* ; do ln -s $$i ;done
73-
tar cvfz libtorch-$(VERSION)+cu92.tgz usr
74-
75-
libtorch_$(VERSION)+cu92-1_amd64.deb:libtorch-$(VERSION)+cu92.tgz
76-
fakeroot alien --to-deb --bump=0 --version=$(VERSION)+cu92 --target=amd64 libtorch-$(VERSION)+cu92.tgz
77-
78-
libtorch-$(VERSION)+cu92-1.x86_64.rpm:libtorch-$(VERSION)+cu92.tgz
79-
fakeroot alien --to-rpm --bump=0 --version=$(VERSION)+cu92 --target=amd64 libtorch-$(VERSION)+cu92.tgz
80-
81-
libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu101.zip:
82-
wget -c https://download.pytorch.org/libtorch/cu101/libtorch-cxx11-abi-shared-with-deps-$(VERSION)%2Bcu101.zip
83-
84-
libtorch-$(VERSION)+cu101.tgz:libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu101.zip
85-
rm -rf libtorch usr/
86-
unzip libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu101.zip
87-
mkdir -p usr/
88-
cp -r libtorch/* usr/
89-
cd usr/include/torch; for i in csrc/api/include/torch/* ; do ln -s $$i ;done
90-
tar cvfz libtorch-$(VERSION)+cu101.tgz usr
91-
92-
libtorch_$(VERSION)+cu101-1_amd64.deb:libtorch-$(VERSION)+cu101.tgz
93-
fakeroot alien --to-deb --bump=0 --version=$(VERSION)+cu101 --target=amd64 libtorch-$(VERSION)+cu101.tgz
94-
95-
libtorch-$(VERSION)+cu101-1.x86_64.rpm:libtorch-$(VERSION)+cu101.tgz
96-
fakeroot alien --to-rpm --bump=0 --version=$(VERSION)+cu101 --target=amd64 libtorch-$(VERSION)+cu101.tgz
97-
98-
9955
libtorch-cxx11-abi-shared-with-deps-$(VERSION).zip:
10056
wget -c https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-$(VERSION).zip
10157

@@ -113,21 +69,21 @@ libtorch_$(VERSION)+cu102-1_amd64.deb:libtorch-$(VERSION)+cu102.tgz
11369
libtorch-$(VERSION)+cu102-1.x86_64.rpm:libtorch-$(VERSION)+cu102.tgz
11470
fakeroot alien --to-rpm --bump=0 --version=$(VERSION)+cu102 --target=amd64 libtorch-$(VERSION)+cu102.tgz
11571

116-
libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu110.zip:
117-
wget -c https://download.pytorch.org/libtorch/cu110/libtorch-cxx11-abi-shared-with-deps-$(VERSION)%2Bcu110.zip
72+
libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu111.zip:
73+
wget -c https://download.pytorch.org/libtorch/cu111/libtorch-cxx11-abi-shared-with-deps-$(VERSION)%2Bcu111.zip
11874

119-
libtorch-$(VERSION)+cu110.tgz:libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu110.zip
75+
libtorch-$(VERSION)+cu111.tgz:libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu111.zip
12076
rm -rf libtorch usr/
121-
unzip libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu110.zip
77+
unzip libtorch-cxx11-abi-shared-with-deps-$(VERSION)+cu111.zip
12278
mkdir -p usr/
12379
cp -r libtorch/* usr/
12480
cd usr/include/torch; for i in csrc/api/include/torch/* ; do ln -s $$i ;done
125-
tar cvfz libtorch-$(VERSION)+cu110.tgz usr
81+
tar cvfz libtorch-$(VERSION)+cu111.tgz usr
12682

127-
libtorch_$(VERSION)+cu110-1_amd64.deb:libtorch-$(VERSION)+cu110.tgz
128-
fakeroot alien --to-deb --bump=0 --version=$(VERSION)+cu110 --target=amd64 libtorch-$(VERSION)+cu110.tgz
83+
libtorch_$(VERSION)+cu111-1_amd64.deb:libtorch-$(VERSION)+cu111.tgz
84+
fakeroot alien --to-deb --bump=0 --version=$(VERSION)+cu111 --target=amd64 libtorch-$(VERSION)+cu111.tgz
12985

130-
libtorch-$(VERSION)+cu110-1.x86_64.rpm:libtorch-$(VERSION)+cu110.tgz
131-
fakeroot alien --to-rpm --bump=0 --version=$(VERSION)+cu110 --target=amd64 libtorch-$(VERSION)+cu110.tgz
86+
libtorch-$(VERSION)+cu111-1.x86_64.rpm:libtorch-$(VERSION)+cu111.tgz
87+
fakeroot alien --to-rpm --bump=0 --version=$(VERSION)+cu111 --target=amd64 libtorch-$(VERSION)+cu111.tgz
13288

13389

0 commit comments

Comments
 (0)