Skip to content

Commit e683bfd

Browse files
Remove ROCm build and only build for PyPi (#555)
1 parent 7f3a357 commit e683bfd

File tree

1 file changed

+2
-113
lines changed

1 file changed

+2
-113
lines changed

.github/workflows/build.yaml

+2-113
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
matrix:
4242
os: [ubuntu-20.04, windows-latest]
4343
pyver: ["3.8", "3.9", "3.10", "3.11"]
44-
cuda: ["11.8.0", "12.1.1"]
44+
cuda: ["12.1.1"]
4545
defaults:
4646
run:
4747
shell: pwsh
4848
env:
49-
PYPI_CUDA_VERSION: "12.1.1"
49+
PYPI_CUDA_VERSION: "12.1.1"
5050
CUDA_VERSION: ${{ matrix.cuda }}
5151

5252
steps:
@@ -120,114 +120,3 @@ jobs:
120120
with:
121121
upload_url: ${{ needs.release.outputs.upload_url }}
122122
asset_path: ./dist/*.whl
123-
124-
build_rocm_wheels:
125-
name: Build AWQ with ROCm
126-
runs-on: ${{ matrix.os }}
127-
needs: release
128-
129-
strategy:
130-
matrix:
131-
os: [ubuntu-20.04]
132-
python: ["3.8", "3.9", "3.10", "3.11"]
133-
rocm: ["5.7.1"]
134-
defaults:
135-
run:
136-
shell: bash
137-
env:
138-
ROCM_VERSION: ${{ matrix.rocm }}
139-
140-
steps:
141-
- uses: actions/checkout@v3
142-
143-
- name: Free Disk Space
144-
run: |
145-
df -h
146-
echo "Removing large packages"
147-
sudo apt-get remove -y '^dotnet-.*'
148-
sudo apt-get remove -y 'php.*'
149-
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel
150-
df -h
151-
sudo apt-get autoremove -y >/dev/null 2>&1
152-
sudo apt-get clean
153-
sudo apt-get autoremove -y >/dev/null 2>&1
154-
sudo apt-get autoclean -y >/dev/null 2>&1
155-
df -h
156-
echo "https://github.com/actions/virtual-environments/issues/709"
157-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
158-
df -h
159-
echo "remove big /usr/local"
160-
sudo rm -rf "/usr/local/share/boost"
161-
sudo rm -rf /usr/local/lib/android >/dev/null 2>&1
162-
df -h
163-
sudo rm -rf /usr/share/dotnet/sdk > /dev/null 2>&1
164-
sudo rm -rf /usr/share/dotnet/shared > /dev/null 2>&1
165-
sudo rm -rf /usr/share/swift > /dev/null 2>&1
166-
df -h
167-
168-
- uses: actions/setup-python@v3
169-
with:
170-
python-version: ${{ matrix.python }}
171-
172-
- name: Setup Mamba
173-
uses: conda-incubator/setup-miniconda@v2.2.0
174-
with:
175-
activate-environment: "build"
176-
python-version: ${{ matrix.python }}
177-
mamba-version: "*"
178-
use-mamba: false
179-
channels: conda-forge,defaults
180-
channel-priority: true
181-
add-pip-as-python-dependency: true
182-
auto-activate-base: false
183-
184-
- name: Set up ROCm
185-
run: |
186-
echo "Using python:"
187-
python --version
188-
which python
189-
190-
if [[ "${{ matrix.rocm }}" == "5.4.2" ]]; then
191-
export ROCM_DL_FILE=amdgpu-install_5.4.50402-1_all.deb
192-
elif [[ "${{ matrix.rocm }}" == "5.6.1" ]]; then
193-
export ROCM_DL_FILE=amdgpu-install_5.6.50601-1_all.deb
194-
elif [[ "${{ matrix.rocm }}" == "5.7.1" ]]; then
195-
export ROCM_DL_FILE=amdgpu-install_5.7.50701-1_all.deb
196-
else
197-
echo Unknown rocm version
198-
exit 1
199-
fi
200-
201-
curl -O https://repo.radeon.com/amdgpu-install/${{ matrix.rocm }}/ubuntu/focal/$ROCM_DL_FILE
202-
sudo dpkg -i $ROCM_DL_FILE
203-
sudo DEBIAN_FRONTEND=noninteractive amdgpu-install --usecase=rocm --no-dkms --no-32 -y
204-
205-
- name: Install Dependencies
206-
run: |
207-
sudo apt-get update
208-
sudo apt-get install -y --no-install-recommends rocsparse-dev rocthrust-dev rocblas-dev hipblas-dev hipsparse-dev
209-
210-
python -m pip install --upgrade build setuptools wheel requests
211-
212-
if [[ "${{ matrix.rocm }}" == "5.7.1" ]]; then
213-
python -m pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/rocm5.7
214-
elif [[ "${{ matrix.rocm }}" == "5.6.1" ]]; then
215-
python -m pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/rocm5.6
216-
else
217-
echo Unknown rocm version for python install
218-
exit 1
219-
fi
220-
221-
- name: Build Wheel
222-
run: |
223-
echo "Using python for build:"
224-
python --version
225-
which python
226-
227-
ROCM_VERSION=${{ matrix.rocm }} PYPI_FORCE_TAGS=1 python setup.py sdist bdist_wheel
228-
229-
- name: Upload Assets
230-
uses: shogo82148/actions-upload-release-asset@v1
231-
with:
232-
upload_url: ${{ needs.release.outputs.upload_url }}
233-
asset_path: ./dist/*.whl

0 commit comments

Comments
 (0)