Skip to content

Commit 0414999

Browse files
authored
fix IXUCA yml (PaddlePaddle#2195)
1 parent c40fe25 commit 0414999

File tree

1 file changed

+34
-24
lines changed

1 file changed

+34
-24
lines changed

.github/workflows/_IXUCA.yml

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,39 +81,47 @@ jobs:
8181
id: run-ixuca
8282
if: steps.check-bypass.outputs.can-skip != 'true'
8383
run: |
84-
docker exec -t ${{ env.container_name }} /bin/bash -c '
85-
cd /workspace/PaddleCustomDevice
86-
# !!!!! SKIP IF NO IXUCA CHANGE !!!!
8784
echo "=========== Checking PR Changes If IXUCA FULL CI Needed ==========="
88-
change_numbers=$(git diff --name-only remotes/origin/${BRANCH} | wc -l)
89-
change_backend=$(git diff --name-only remotes/origin/${BRANCH} | grep "backends/"| wc -l)
90-
change_ixuca_only=$(git diff --name-only remotes/origin/${BRANCH} | grep "backends/iluvatar_gpu"| wc -l)
91-
git --no-pager diff --name-only remotes/origin/${BRANCH}
9285
93-
if [ $change_numbers -ne $change_backend ]; then
94-
echo "Common file changed, continue to run IXUCA FULL CI test ..."
95-
echo "should_skip=false" >> $GITHUB_OUTPUT
96-
elif [ $change_ixuca_only -eq 0 ] ; then
97-
echo "NO IXUCA backend changes found, skip IXUCA FULL CI ...."
98-
echo "should_skip=true" >> $GITHUB_OUTPUT
99-
exit 0
100-
else
101-
echo "should_skip=false" >> $GITHUB_OUTPUT
102-
fi
86+
should_skip=$(docker exec -t ${{ env.container_name }} /bin/bash -c '
87+
cd /workspace/PaddleCustomDevice
10388
104-
export PATH=/usr/local/corex-4.3.0/bin:$PATH
105-
mkdir -p /workspace/PaddleCustomDevice/Paddle/third_party/mklml/Linux
106-
curl -o /workspace/PaddleCustomDevice/Paddle/third_party/mklml/Linux/csrmm_mklml_lnx_2019.0.5.tgz http://paddlepaddledeps.bj.bcebos.com/csrmm_mklml_lnx_2019.0.5.tgz
107-
tar xf /workspace/PaddleCustomDevice/Paddle/third_party/mklml/Linux/csrmm_mklml_lnx_2019.0.5.tgz
108-
python3 -m pip install --pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
109-
python3 -m pip install parameterized'
89+
change_numbers=$(git --no-pager diff --name-only remotes/origin/${BRANCH} | wc -l)
90+
change_backend=$(git --no-pager diff --name-only remotes/origin/${BRANCH} | grep "backends/" | wc -l)
91+
change_ixuca_only=$(git --no-pager diff --name-only remotes/origin/${BRANCH} | grep "backends/iluvatar_gpu" | wc -l)
92+
93+
echo "Changed files:"
94+
git --no-pager diff --name-only remotes/origin/${BRANCH}
95+
96+
if [ $change_numbers -ne $change_backend ]; then
97+
echo "Common file changed, continue to run IXUCA FULL CI test ..."
98+
echo false
99+
elif [ $change_ixuca_only -eq 0 ]; then
100+
echo "NO IXUCA backend changes found, skip IXUCA FULL CI ...."
101+
echo true
102+
else
103+
echo "IXUCA backend changed, run FULL CI ..."
104+
echo false
105+
fi
106+
' | tail -n 1 | tr -d '\r')
107+
108+
echo "should_skip from docker = $should_skip"
109+
echo "should_skip=$should_skip" >> $GITHUB_OUTPUT
110110
111111
- name: Build and Install paddle_iluvatar_gpu
112112
if: steps.check-bypass.outputs.can-skip != 'true' && steps.run-ixuca.outputs.should_skip != 'true'
113113
run: |
114114
docker exec -t ${{ env.container_name }} /bin/bash -c '
115-
cd /workspace/PaddleCustomDevice/backends/iluvatar_gpu
115+
export PATH=/usr/local/corex-4.3.0/bin:$PATH
116+
mkdir -p /workspace/PaddleCustomDevice/Paddle/third_party/mklml/Linux
117+
curl -o /workspace/PaddleCustomDevice/Paddle/third_party/mklml/Linux/csrmm_mklml_lnx_2019.0.5.tgz http://paddlepaddledeps.bj.bcebos.com/csrmm_mklml_lnx_2019.0.5.tgz
118+
tar xf /workspace/PaddleCustomDevice/Paddle/third_party/mklml/Linux/csrmm_mklml_lnx_2019.0.5.tgz
119+
python3 -m pip install --pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
120+
pip show paddlepaddle
121+
python3 -m pip install parameterized
122+
pip show parameterized
116123
export PADDLE_VERSION=0.0.0
124+
cd /workspace/PaddleCustomDevice/backends/iluvatar_gpu
117125
# build
118126
bash build_paddle.sh
119127
# Install
@@ -123,6 +131,8 @@ jobs:
123131
if: steps.check-bypass.outputs.can-skip != 'true' && steps.run-ixuca.outputs.should_skip != 'true'
124132
run: |
125133
docker exec -t ${{ env.container_name }} /bin/bash -c '
134+
pip show parameterized
135+
python3 -m pip install parameterized
126136
cd /workspace/PaddleCustomDevice/backends/iluvatar_gpu/tests
127137
# Run tests
128138
bash run_test.sh'

0 commit comments

Comments
 (0)