-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Upgrade to PyTorch 1.11 on Linux (#2238)
Together with #2233 and #2235 this completes the upgrade to PyTorch 1.11 for all platforms. A small change to the way things are done is that we now copy all MKL libraries into the Docker images, then copy the required subset into our release distribution. This means we can change the subset of MKL libraries that we redistribute without having to rebuild our Docker images. Fixes #2126
- Loading branch information
1 parent
64aa225
commit c7c3683
Showing
15 changed files
with
33 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
name,version,revision,url,license,copyright,sourceURL | ||
PyTorch,1.9.0,d69c22dd61a2f006dcfe1e3ea8468a3ecaf931aa,https://pytorch.org,BSD-3-Clause,, | ||
PyTorch,1.11.0,bc2c6edaf163b1a1330e37a6e34caf8c553e4755,https://pytorch.org,BSD-3-Clause,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,18 +274,13 @@ sudo yum-config-manager --add-repo https://yum.repos.intel.com/mkl/setup/intel-m | |
sudo yum -y install intel-mkl-2020.4-912 | ||
``` | ||
|
||
Then copy the required libraries to the system directory: | ||
Then copy the shared libraries to the system directory: | ||
|
||
``` | ||
sudo cp /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so /usr/local/gcc103/lib | ||
sudo cp /opt/intel/mkl/lib/intel64/libmkl_core.so /usr/local/gcc103/lib | ||
sudo cp /opt/intel/mkl/lib/intel64/libmkl_def.so /usr/local/gcc103/lib | ||
sudo cp /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so /usr/local/gcc103/lib | ||
sudo cp /opt/intel/mkl/lib/intel64/libmkl_avx*.so /usr/local/gcc103/lib | ||
sudo cp /opt/intel/mkl/lib/intel64/libmkl_vml*.so /usr/local/gcc103/lib | ||
sudo cp /opt/intel/mkl/lib/intel64/libmkl*.so /usr/local/gcc103/lib | ||
``` | ||
|
||
### PyTorch 1.9.0 | ||
### PyTorch 1.11.0 | ||
|
||
PyTorch requires that certain Python modules are installed. Install these modules with `pip` using the same Python version you will build PyTorch with. If you followed the instructions above and built Python from source use `python3.7`: | ||
|
||
|
@@ -302,7 +297,7 @@ sudo /usr/local/gcc103/bin/python3.7 -m pip install install numpy pyyaml setupto | |
Then obtain the PyTorch code: | ||
|
||
``` | ||
git clone --depth=1 --branch=v1.9.0 [email protected]:pytorch/pytorch.git | ||
git clone --depth=1 --branch=v1.11.0 [email protected]:pytorch/pytorch.git | ||
cd pytorch | ||
git submodule sync | ||
git submodule update --init --recursive | ||
|
@@ -330,7 +325,8 @@ export USE_MKLDNN=ON | |
export USE_QNNPACK=OFF | ||
export USE_PYTORCH_QNNPACK=OFF | ||
[ $(uname -m) = x86_64 ] && export USE_XNNPACK=OFF | ||
export PYTORCH_BUILD_VERSION=1.9.0 | ||
[ $(uname -m) != x86_64 ] && export USE_BREAKPAD=OFF | ||
export PYTORCH_BUILD_VERSION=1.11.0 | ||
export PYTORCH_BUILD_NUMBER=1 | ||
/usr/local/gcc103/bin/python3.7 setup.py install | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
# | ||
|
||
# Increment the version here when a new tools/3rd party components image is built | ||
FROM docker.elastic.co/ml-dev/ml-linux-aarch64-cross-build:6 | ||
FROM docker.elastic.co/ml-dev/ml-linux-aarch64-cross-build:7 | ||
|
||
MAINTAINER David Roberts <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
# | ||
|
||
# Increment the version here when a new tools/3rd party components image is built | ||
FROM docker.elastic.co/ml-dev/ml-linux-aarch64-native-build:6 | ||
FROM docker.elastic.co/ml-dev/ml-linux-aarch64-native-build:7 | ||
|
||
MAINTAINER David Roberts <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
# | ||
|
||
# Increment the version here when a new tools/3rd party components image is built | ||
FROM docker.elastic.co/ml-dev/ml-linux-aarch64-native-build:6 | ||
FROM docker.elastic.co/ml-dev/ml-linux-aarch64-native-build:7 | ||
|
||
MAINTAINER David Roberts <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
# | ||
|
||
# Increment the version here when a new tools/3rd party components image is built | ||
FROM docker.elastic.co/ml-dev/ml-linux-build:20 | ||
FROM docker.elastic.co/ml-dev/ml-linux-build:21 | ||
|
||
MAINTAINER David Roberts <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
# | ||
|
||
# Increment the version here when a new tools/3rd party components image is built | ||
FROM docker.elastic.co/ml-dev/ml-linux-build:20 | ||
FROM docker.elastic.co/ml-dev/ml-linux-build:21 | ||
|
||
MAINTAINER David Roberts <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters