Skip to content

[BUG] FIx bug with f16 overfloat #1370

[BUG] FIx bug with f16 overfloat

[BUG] FIx bug with f16 overfloat #1370

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
workflow_call:
workflow_dispatch:
inputs:
runner_group:
type: choice
options:
- arc-l4
- arc-a10
- arc-h100
description: 'Runner group to run tests. (arc-l4, arc-a10, arc-h100)'
required: false
default: arc-l4
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build-wheel:
outputs:
wheel_name: ${{ steps.build_step.outputs.wheel_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo "VERSION=0.0.1.dev${{ github.run_id }}" >> $GITHUB_OUTPUT
- name: Build Hidet Wheel
id: build_step
uses: ./.github/actions/build-wheel
with:
version: ${{ steps.get_version.outputs.VERSION }}
- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build_step.outputs.wheel_name }}
path: ${{ steps.build_step.outputs.wheel_path }}
retention-days: 3
if-no-files-found: "error"
build-docs:
runs-on:
arc-runner-set
container:
image: nvidia/cuda:12.6.2-devel-ubuntu22.04
options: --gpus all
steps:
- name: Install dependencies via apt
run: |
apt update && DEBIAN_FRONTEND=noninteractive apt install -y ccache git graphviz
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.19.x'
- name: Setup Hidet
uses: ./.github/actions/setup-hidet
- name: List installed packages
run: |
pip list
- name: Install docs dependencies
run: |
pip install -r docs/requirements.txt
- name: Build docs
run: |
cd docs; make clean; make html
list-test-dirs:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout Hidet
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- id: set-matrix
run: |
python .github/scripts/set_test_matrix.py
run-test:
needs: [list-test-dirs, build-wheel]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.list-test-dirs.outputs.matrix) }}
runs-on:
arc-runner-set
container:
image: nvidia/cuda:12.6.2-devel-ubuntu22.04
steps:
- name: Install dependencies via apt
run: |
apt update && DEBIAN_FRONTEND=noninteractive apt install -y ccache git graphviz
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Download wheel
uses: actions/download-artifact@v4
with:
name: ${{ needs.build-wheel.outputs.wheel_name }}
- name: Setup Hidet from Wheel
run: |
pip install -r requirements-dev.txt
pip install ${{ needs.build-wheel.outputs.wheel_name }}
- name: List installed packages
run: |
pip list
- name: Run tests
run: |
rm -rf ~/.config/hidet
python -m pytest -v --durations=20 --clear-cache ${{ matrix.path }}
final-status-indicator:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Pass All Functional Tests
needs: [run-test]
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}