Skip to content

fix(torch): honor handle streams in generated operators #363

fix(torch): honor handle streams in generated operators

fix(torch): honor handle streams in generated operators #363

Workflow file for this run

name: Documentation Pages
on:
push:
branches: [master]
paths:
- ".github/workflows/docs-pages.yml"
- "CMakeLists.txt"
- "README.md"
- "docs/**"
- "examples/**"
- "include/**"
- "scripts/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/docs-pages.yml"
- "CMakeLists.txt"
- "README.md"
- "docs/**"
- "examples/**"
- "include/**"
- "scripts/**"
- "src/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install documentation dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake doxygen graphviz
python -m pip install libclang pyyaml
- name: Build InfiniRT
run: |
git clone --depth 1 "${INFINI_RT_GIT_URL:-https://github.com/InfiniTensor/InfiniRT.git}" /tmp/infini-rt-src
cmake -S /tmp/infini-rt-src -B /tmp/infini-rt-build \
-DWITH_CPU=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/tmp/infini-rt-prefix
cmake --build /tmp/infini-rt-build -j"$(nproc)"
cmake --install /tmp/infini-rt-build
- name: Configure documentation build
run: |
cmake -S . -B build \
-DINFINI_RT_ROOT=/tmp/infini-rt-prefix \
-DWITH_CPU=ON \
-DINFINI_OPS_BUILD_DOCS=ON
- name: Build documentation
run: cmake --build build --target infiniops_docs
- name: Validate generated site
run: |
test -f build/docs/reference/html/index.html
grep -q "InfiniOps" build/docs/reference/html/index.html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: build/docs/reference/html
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4