diff --git a/.github/workflows/amd.yml b/.github/workflows/amd.yml index 018624db461a..bb2a72f8f09e 100644 --- a/.github/workflows/amd.yml +++ b/.github/workflows/amd.yml @@ -33,6 +33,9 @@ jobs: python --version which hipcc hipcc --version + pip install --upgrade pip + pip uninstall --yes torch torchvision + pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.1.1 python -c "import torch; print('torch:', torch.__version__, torch)" python -c "import torch; print('CUDA available:', torch.cuda.is_available())" sudo apt-get update @@ -63,5 +66,5 @@ jobs: run: | if [[ -d ./torch-extensions ]]; then rm -rf ./torch-extensions; fi cd tests - TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --forked --verbose -x -n 4 unit/ - TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --forked --verbose -x -m 'sequential' unit/ + TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --verbose -n 4 unit/{comm,inference,monitor,ops,profiling,runtime} + #TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --verbose -m 'sequential' unit/{comm,inference,monitor,ops,profiling,runtime} diff --git a/tests/unit/ops/adagrad/test_cpu_adagrad.py b/tests/unit/ops/adagrad/test_cpu_adagrad.py index 66e246ed23fc..6f530d0309fa 100755 --- a/tests/unit/ops/adagrad/test_cpu_adagrad.py +++ b/tests/unit/ops/adagrad/test_cpu_adagrad.py @@ -7,7 +7,7 @@ from deepspeed.ops.op_builder import CPUAdagradBuilder if not deepspeed.ops.__compatible_ops__[CPUAdagradBuilder.NAME]: - pytest.skip("cpu-adagrad is not compatible") + pytest.skip("cpu-adagrad is not compatible", allow_module_level=True) def check_equal(first, second, atol=1e-2, verbose=False): diff --git a/tests/unit/ops/adam/test_cpu_adam.py b/tests/unit/ops/adam/test_cpu_adam.py index 7357c086d08d..54389ce5fcf4 100755 --- a/tests/unit/ops/adam/test_cpu_adam.py +++ b/tests/unit/ops/adam/test_cpu_adam.py @@ -8,7 +8,7 @@ from deepspeed.ops.op_builder import CPUAdamBuilder if not deepspeed.ops.__compatible_ops__[CPUAdamBuilder.NAME]: - pytest.skip("cpu-adam is not compatible") + pytest.skip("cpu-adam is not compatible", allow_module_level=True) pytest.cpu_vendor = get_cpu_info()["vendor_id_raw"].lower()