diff --git a/.github/workflows/scripts/unix-build.sh b/.github/workflows/scripts/unix-build.sh index 2d39ffd0aa1926..31cd8546c3279d 100755 --- a/.github/workflows/scripts/unix-build.sh +++ b/.github/workflows/scripts/unix-build.sh @@ -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 diff --git a/.github/workflows/scripts/unix_test.sh b/.github/workflows/scripts/unix_test.sh index c719f129cd2a88..a2f41fd2d9d342 100755 --- a/.github/workflows/scripts/unix_test.sh +++ b/.github/workflows/scripts/unix_test.sh @@ -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 @@ -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 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a11b794b05c321..a68f0d0bb8b21b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -277,7 +277,6 @@ jobs: tags: - [self-hosted, amdgpu] - runs-on: ${{ matrix.tags }} steps: - uses: actions/checkout@v3 with: @@ -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'