Commit 70c7e7e1 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Add "+cpu" suffix to doc build job (#2060)

Summary:
While updating the documentation in release/0.10, a HIP error was raised.
https://app.circleci.com/pipelines/github/pytorch/audio/8577/workflows/02c6ff44-a042-4f9a-8fb8-573a231f60db/jobs/452639

This happens because `pip install torchaudio -f https://...` defaults to
ROCm version while `build_doc` is supposed to pick the CPU version.

Adding suffix `+cpu` should resolve the isssue.

It is validated on https://github.com/pytorch/audio/pull/2060 https://app.circleci.com/pipelines/github/pytorch/audio/8584/workflows/25ae26e5-273f-46f8-805d-ffc7b6b8eb58/jobs/453337

Pull Request resolved: https://github.com/pytorch/audio/pull/2060

Reviewed By: carolineechen

Differential Revision: D32846765

Pulled By: mthrok

fbshipit-source-id: e6b3b32646388b8c4ba864639f8b62d8b9d39844
parent a401dcb8
...@@ -7,6 +7,8 @@ source ./packaging/pkg_helpers.bash ...@@ -7,6 +7,8 @@ source ./packaging/pkg_helpers.bash
export NO_CUDA_PACKAGE=1 export NO_CUDA_PACKAGE=1
setup_env 0.8.0 setup_env 0.8.0
setup_wheel_python setup_wheel_python
# Starting 0.10, `pip install pytorch` defaults to ROCm.
export PYTORCH_VERSION_SUFFIX="+cpu"
setup_pip_pytorch_version setup_pip_pytorch_version
# pytorch is already installed # pytorch is already installed
pip install --no-deps ~/workspace/torchaudio* pip install --no-deps ~/workspace/torchaudio*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment