use oneccl 0.0.5.1 (#12262)
This commit is contained in:
parent
e0a95eb2d6
commit
48fc63887d
1 changed files with 2 additions and 4 deletions
|
|
@ -10,7 +10,6 @@ ENV PYTHONUNBUFFERED=1
|
||||||
# Disable pip's cache behavior
|
# Disable pip's cache behavior
|
||||||
ARG PIP_NO_CACHE_DIR=false
|
ARG PIP_NO_CACHE_DIR=false
|
||||||
ADD ./gradio_web_server.patch /tmp/gradio_web_server.patch
|
ADD ./gradio_web_server.patch /tmp/gradio_web_server.patch
|
||||||
ADD ./oneccl-binding.patch /tmp/oneccl-binding.patch
|
|
||||||
|
|
||||||
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/intel-oneapi-archive-keyring.gpg > /dev/null && \
|
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/intel-oneapi-archive-keyring.gpg > /dev/null && \
|
||||||
echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main " | tee /etc/apt/sources.list.d/oneAPI.list && \
|
echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main " | tee /etc/apt/sources.list.d/oneAPI.list && \
|
||||||
|
|
@ -54,11 +53,10 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
|
pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
|
||||||
# Internal oneccl
|
# Internal oneccl
|
||||||
wget https://sourceforge.net/projects/oneccl-wks/files/2024.0.0.5-release/oneccl_wks_installer_2024.0.0.5.sh && \
|
wget https://sourceforge.net/projects/oneccl-wks/files/2024.0.0.5.1-release/oneccl_wks_installer_2024.0.0.5.1.sh && \
|
||||||
bash oneccl_wks_installer_2024.0.0.5.sh && \
|
bash oneccl_wks_installer_2024.0.0.5.1.sh && \
|
||||||
git clone https://github.com/intel/torch-ccl -b v2.1.300+xpu && \
|
git clone https://github.com/intel/torch-ccl -b v2.1.300+xpu && \
|
||||||
cd torch-ccl && \
|
cd torch-ccl && \
|
||||||
patch -p1 < /tmp/oneccl-binding.patch && \
|
|
||||||
USE_SYSTEM_ONECCL=ON COMPUTE_BACKEND=dpcpp python setup.py install && \
|
USE_SYSTEM_ONECCL=ON COMPUTE_BACKEND=dpcpp python setup.py install && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends libfabric-dev wrk libaio-dev numactl && \
|
apt-get install -y --no-install-recommends libfabric-dev wrk libaio-dev numactl && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue