[TLE][MTHREADS] Support TLE Structure on mthreads backend #296
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Enflame3.6-GCU400-Build-And-Test | |
| on: | |
| push: | |
| branches: [ "triton_v3.6.x" ] | |
| pull_request: | |
| branches: [ "triton_v3.6.x" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| enflame36-gcu400-build-and-test: | |
| runs-on: "enflame3.6-gcu400" | |
| if: ${{ github.repository == 'FlagTree/flagtree' || github.repository == 'flagos-ai/flagtree' }} | |
| steps: | |
| - name: Setup environment | |
| shell: bash | |
| run: | | |
| source ~/env.sh | |
| env | grep -E '^(http_proxy|https_proxy|all_proxy|no_proxy)=' >> $GITHUB_ENV || true | |
| - name: Smart Checkout | |
| uses: flagos-ai/FlagTree/.github/actions/smart-checkout@main | |
| with: | |
| checkout_version: 'v6' | |
| - name: Check if backend-relevant files changed | |
| id: check_backend | |
| uses: flagos-ai/FlagTree/.github/actions/check-backend-changed@main | |
| with: | |
| backend: enflame | |
| - name: Detect Target Branch | |
| shell: bash | |
| run: | | |
| set -x | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| TARGET_BRANCH="${{ github.base_ref }}" | |
| else | |
| TARGET_BRANCH="${{ github.ref_name }}" | |
| fi | |
| echo "TARGET_BRANCH=$TARGET_BRANCH" >> $GITHUB_ENV | |
| echo "TARGET_BRANCH=$TARGET_BRANCH" | |
| - name: FlagTree Build on Enflame | |
| if: ${{ steps.check_backend.outputs.should_skip != 'true' }} | |
| shell: bash | |
| run: | | |
| set -x | |
| python3 -m pip uninstall -y triton --break-system-packages | |
| python3 -m pip uninstall -y triton_gcu --break-system-packages | |
| export FLAGTREE_BACKEND=enflame | |
| MAX_JOBS=32 python3 -m pip install . --no-build-isolation --break-system-packages | |
| - name: FlagTree Test on Enflame | |
| if: steps.check_backend.outputs.should_skip != 'true' | |
| shell: bash | |
| run: | | |
| set -x | |
| ## triton unit test | |
| python3 -m pytest -s third_party/enflame/python/test/unit \ | |
| --ignore=third_party/enflame/python/test/unit/language/test_core.py | |
| ## tle unit test | |
| python3 -m pytest -s python/test/tle \ | |
| --ignore=python/test/tle/unit/test_extract_tile_static_index.py \ | |
| --ignore=python/test/tle/unit/test_insert_tile_static_index.py | |
| python3 third_party/enflame/python/test/tle/unit/test_extract_tile_static_index.py | |
| python3 third_party/enflame/python/test/tle/unit/test_insert_tile_static_index.py | |
| ## tle raw test | |
| python3 -m pytest -s third_party/enflame/python/test/tle/raw | |
| ## tle tutorials test | |
| python3 python/tutorials/tle/01-fft.py | |
| python3 python/tutorials/tle/02-moe_align_block_size.py | |
| python3 python/tutorials/tle/03-topk.py | |
| # python3 python/tutorials/tle/04-cluster-gemm.py | |
| # python3 python/tutorials/tle/deepseek_v32/01-topk_selector.py | |
| python3 third_party/enflame/python/test/tle/tutorials/deepseek_v32/02-sparse-mla.py |