Skip to content

Commit d61c4d2

Browse files
authored
[skip ci] Update conda-post-commit.yaml (#23864)
### Ticket Link to Github Issue ### Problem description The python wheel, and the anaconda package are currently not bundling SFPI. As such, we need to install it, before testing. ### What's changed Install latest released SFPI RPM. ### Checklist - [x] [Conda post commit](https://github.com/tenstorrent/tt-metal/actions/runs/15789451869) CI passes - [x] New/Existing tests provide coverage for changes
1 parent 6006018 commit d61c4d2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/conda-post-commit.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ jobs:
9898
GITHUB_ACTIONS: true
9999
LOGURU_LEVEL: DEBUG
100100
PYTHONPATH: /work
101-
TT_METAL_HOME: /work
102101
volumes:
103102
- ${{ github.workspace }}/docker-job:/work # Subdir to workaround https://github.com/actions/runner/issues/691
104103
- /dev/hugepages-1G:/dev/hugepages-1G
@@ -135,12 +134,12 @@ jobs:
135134
run: |
136135
source /opt/conda/etc/profile.d/conda.sh
137136
conda activate metalium_env
138-
export SITE_PACKAGES_DIR="$CONDA_PREFIX/lib/python$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')/site-packages"
139-
rm -rf $CONDA_PREFIX/share/tt-metalium/runtime/sfpi
140-
wget https://github.com/tenstorrent/sfpi/releases/download/v6.5.0/sfpi-release.tgz
141-
tar -xzf sfpi-release.tgz
142-
mv sfpi $CONDA_PREFIX/share/tt-metalium/runtime/
143-
ln -sf $SITE_PACKAGES_DIR/runtime runtime
137+
wget -O /tmp/sfpi-version.sh https://raw.githubusercontent.com/tenstorrent/tt-metal/refs/heads/main/tt_metal/sfpi-version.sh
138+
sfpi_arch_os=$(uname -m)_$(uname -s)
139+
source /tmp/sfpi-version.sh
140+
wget ${sfpi_url}/${sfpi_version}/sfpi-${sfpi_arch_os}.rpm
141+
dnf -y install ./sfpi-${sfpi_arch_os}.rpm
142+
rm -f sfpi-${sfpi_arch_os}.rpm /tmp/sfpi-version.sh
144143
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
145144
${{ matrix.test-group.cmd }}
146145

0 commit comments

Comments
 (0)