Skip to content

Commit 2670e35

Browse files
committed
hw workflow-related updates
1 parent 4d0f421 commit 2670e35

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

.github/workflows/call-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
options:
2020
- ubuntu-latest
2121
- mlir-large-runner-lang
22-
default: "mlir-large-runner-lang"
22+
default: "ubuntu-latest"
2323
build_docs:
2424
description: "Build and deploy documentation."
2525
type: boolean
@@ -34,7 +34,7 @@ on:
3434
description: "Linux runner to use (ubuntu-latest or mlir-large-runner-lang)"
3535
type: string
3636
required: false
37-
default: "mlir-large-runner-lang"
37+
default: "ubuntu-latest"
3838
build_docs:
3939
description: "Build and deploy documentation."
4040
type: boolean

.github/workflows/call-test-hardware.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ jobs:
7373
RUNS_ON: ${{ inputs.runs-on }}
7474
PYTHONDONTWRITEBYTECODE: 1
7575
TTLANG_TEST_SEED: 42
76+
TT_LANG_HOME: ${{ github.workspace }}
77+
TTMLIR_TOOLCHAIN_DIR: ${{ github.workspace }}/ttmlir-toolchain
7678

7779
steps:
7880
- name: Checkout tt-lang
@@ -95,10 +97,24 @@ jobs:
9597
ARTIFACT_FILE=$(.github/scripts/get-artifact-archive-name.sh "${{ github.sha }}")
9698
tar -I 'zstd --long=31' -xf "${ARTIFACT_FILE}"
9799
rm -f "${ARTIFACT_FILE}"
98-
echo "Checking tt-mlir-install structure..."
99-
ls -la tt-mlir-install/ tt-mlir-install/python_packages/ || echo "Did not unpack tt-mlir-install"
100-
ls -la /opt/ttmlir-toolchain/venv/bin || echo "No valid ttmlir-toolchain found"
101-
find tt-mlir-install/python_packages -name "*ttcore*" 2>/dev/null || echo "No ttcore in tt-mlir-install"
100+
101+
# TODO: Remove after debugging
102+
- name: Debug - Check unpacked archive structure
103+
run: |
104+
echo "=== Top-level directories ==="
105+
ls -la
106+
echo "=== ttmlir-toolchain contents ==="
107+
ls -la ttmlir-toolchain/ || echo "No ttmlir-toolchain directory"
108+
echo "=== ttmlir-toolchain/python_packages ==="
109+
ls -la ttmlir-toolchain/python_packages/ || echo "No python_packages"
110+
echo "=== Looking for ttmlir package ==="
111+
find ttmlir-toolchain -name "ttmlir*" -type d 2>/dev/null | head -20
112+
echo "=== Looking for ttmlir module ==="
113+
find ttmlir-toolchain -name "ttmlir" -type d 2>/dev/null
114+
echo "=== Checking venv ==="
115+
ls -la ttmlir-toolchain/venv/bin/ 2>/dev/null | head -10 || echo "No venv/bin"
116+
echo "=== build/env/activate contents ==="
117+
head -30 build/env/activate || echo "No build/env/activate"
102118
103119
- name: Install test dependencies
104120
run: |

env/activate.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ if [ -n "${TTLANG_ENV_ACTIVATED}" ]; then
1717
unset TTLANG_ENV_ACTIVATED
1818
fi
1919

20-
# Set tt-lang home directory.
21-
export TT_LANG_HOME="@TT_LANG_HOME@"
20+
# Set tt-lang home directory (use existing value if set, otherwise use CMake default).
21+
: ${TT_LANG_HOME:="@TT_LANG_HOME@"}
22+
export TT_LANG_HOME
2223
export TTLANG_HAS_DEVICE="@TTLANG_HAS_DEVICE_INT@"
2324

24-
# Set toolchain directory (configured by CMake).
25-
export TTMLIR_TOOLCHAIN_DIR="@TTMLIR_TOOLCHAIN_DIR@"
25+
# Set toolchain directory (use existing value if set, otherwise use CMake default).
26+
: ${TTMLIR_TOOLCHAIN_DIR:="@TTMLIR_TOOLCHAIN_DIR@"}
27+
export TTMLIR_TOOLCHAIN_DIR
2628

2729
# Activate the Python virtual environment from the toolchain.
2830
if [ -f "${TTMLIR_TOOLCHAIN_DIR}/venv/bin/activate" ]; then

0 commit comments

Comments
 (0)