Skip to content

Commit

Permalink
fix buug
Browse files Browse the repository at this point in the history
  • Loading branch information
galeselee committed Dec 6, 2022
1 parent 62250ce commit 04d6b06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/unix-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -ex
[[ "$IN_DOCKER" == "true" ]] && cd taichi

if [[ $OSTYPE == "linux-"* ]]; then
if ["$AMDGPU_TEST"]; then
if [ ! -z "$AMDGPU_TEST" ]; then
sudo ln -s /usr/bin/clang++-10 /usr/bin/clang++
sudo ln -s /usr/bin/clang-10 /usr/bin/clang
sudo ln -s /usr/bin/ld.lld-10 /usr/bin/ld.lld
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/unix_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setup_python

[[ "$IN_DOCKER" == "true" ]] && cd taichi

if ["$AMDGPU_TEST"]; then
if [ ! -z "$AMDGPU_TEST" ]; then
sudo chmod 666 /dev/kfd
sudo chmod 666 /dev/dri/*
fi
Expand Down Expand Up @@ -108,7 +108,7 @@ if [ -z "$GPU_TEST" ]; then
fi
python3 tests/run_tests.py -vr2 -t4 -k "not paddle" -a "$TI_WANTED_ARCHS"
fi
elif ["$AMDGPU_TEST"]; then
elif [ ! -z "$AMDGPU_TEST" ]; then
run-it cpu $(nproc)
# run-it amdgpu 4
else
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ jobs:
tags:
- [self-hosted, amdgpu]

runs-on: ${{ matrix.tags }}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -318,7 +317,7 @@ jobs:
/home/dev/taichi/.github/workflows/scripts/unix_test.sh
env:
PY: py38
TI_WANTED_ARCHS: 'cc,cpu,amdgpu'
TI_WANTED_ARCHS: 'cpu,amdgpu'
TI_DEVICE_MEMORY_GB: '1'
TI_RUN_RELEASE_TESTS: '0'

Expand Down

0 comments on commit 04d6b06

Please sign in to comment.