Commit 510f2fc 1 parent 765da12 commit 510f2fc Copy full SHA for 510f2fc
File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [ " $1 " != " nightly_wheel " ]; then
3
+ if [ " $1 " == " build " ]; then
4
4
source /opt/intel/oneapi/compiler/latest/env/vars.sh
5
5
source /opt/intel/oneapi/umf/latest/env/vars.sh
6
6
source /opt/intel/oneapi/pti/latest/env/vars.sh
7
7
source /opt/intel/oneapi/ccl/latest/env/vars.sh
8
8
source /opt/intel/oneapi/mpi/latest/env/vars.sh
9
9
source /opt/intel/oneapi/mkl/latest/env/vars.sh
10
10
else
11
+ pip install intel-cmplr-lib-rt intel-cmplr-lib-ur intel-cmplr-lic-rt intel-sycl-rt tcmlib umf intel-pti
11
12
echo " Don't need to source DL-Essential for nightly wheel"
12
13
fi
Original file line number Diff line number Diff line change @@ -83,10 +83,17 @@ jobs:
83
83
fi
84
84
- name : Build Pytorch XPU
85
85
run : |
86
- source .github/scripts/env.sh
86
+ source .github/scripts/env.sh build
87
87
source activate xpu_build
88
88
export USE_ONEMKL=1
89
89
export USE_XCCL=1
90
+ export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="\
91
+ intel-cmplr-lib-rt; platform_system == 'Linux' |\
92
+ intel-cmplr-lib-ur; platform_system == 'Linux' |\
93
+ intel-cmplr-lic-rt; platform_system == 'Linux' |\
94
+ intel-sycl-rt; platform_system == 'Linux' |\
95
+ tcmlib |umf |intel-pti
96
+ "
90
97
if [[ ${{ inputs.driver }} == 'lts' ]]; then
91
98
export TORCH_XPU_ARCH_LIST='pvc'
92
99
fi
@@ -138,8 +145,10 @@ jobs:
138
145
else
139
146
echo "Forked PR, don't update the issue"
140
147
fi
141
- pip install --force-reinstall dist/*.whl
142
- cp dist/*.whl ${{ github.workspace }}/
148
+ pip install patchelf
149
+ bash ${{ github.workspace }}/.github/scripts/rpath.sh dist/torch*.whl
150
+ pip install --force-reinstall tmp/torch*.whl
151
+ cp tmp/*.whl ${{ github.workspace }}/
143
152
cp pytorch_${current_commit}_build.log ${{ github.workspace }}/
144
153
- name : Torch Config
145
154
id : build_version
You can’t perform that action at this time.
0 commit comments