Skip to content

Commit fb50f25

Browse files
committed
Update action.yml
Fix ROCm setup: remove duplicate cleanup and target.lst entries - Removed redundant cleanup commands that were outside the ROCm patch. - Ensure MI200-class accelerator fake entry (`gfx90a`) is only added once. - Streamlined BLAS/LAPACK pinning and ROCm package installation steps.
1 parent a955ab3 commit fb50f25

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/actions/build_cmake/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,19 @@ runs:
103103
"rocm-dev${ROCM_VERSION}" "rocm-utils${ROCM_VERSION}" "rocm-libs${ROCM_VERSION}" >/dev/null
104104
105105
106-
"rocm-dev${ROCM_VERSION}" "rocm-utils${ROCM_VERSION}" \
107-
"rocm-libs${ROCM_VERSION}" >/dev/null
106+
- name: Pin BLAS/LAPACK versions
107+
run: |
108+
conda install -y \
109+
"libblas=3.9.0=35_*" \
110+
"libcblas=3.9.0=35_*" \
111+
"liblapack=3.9.0=35_*"
108112
109113
# Fake presence of MI200-class accelerators
110114
echo "gfx90a" | sudo tee /opt/rocm/bin/target.lst
111115
116+
# Cleanup
117+
118+
112119
# Cleanup
113120
sudo apt-get -qq autoclean >/dev/null
114121
sudo apt-get -qq clean >/dev/null

0 commit comments

Comments
 (0)