Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] remove experimental tutorials; revive docs nightly build #3371

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Install dependent packages
run: |
pip3 install tabulate cmake sphinx myst_parser sphinx-rtd-theme sphinx-gallery sphinx-multiversion
sudo pip3 install tabulate cmake sphinx matplotlib myst_parser sphinx-rtd-theme pandas pytest sphinx-gallery sphinx-multiversion

#- name: Fetch dependent branches
# run: |
Expand All @@ -35,21 +35,25 @@ jobs:
run: |
cd docs
export PATH=$(python3 -c "import cmake; print(cmake.CMAKE_BIN_DIR)"):$PATH
python3 -m sphinx . _build/html/main
sudo python3 -m sphinx . _build/html/main

- name: Update docs
run: |
mkdir /tmp/triton-docs
mv docs/_build/html/* /tmp/triton-docs/
git checkout gh-pages
cp -r CNAME /tmp/triton-docs/
cp -r index.html /tmp/triton-docs/
cp -r .nojekyll /tmp/triton-docs/
rm -r *
cp -r /tmp/triton-docs/* .
git add .
git commit -am "[GH-PAGES] Updated website"
export TMP_DOCS_PATH=/tmp/triton-docs
sudo mkdir $TMP_DOCS_PATH
sudo mv docs/_build/html/* $TMP_DOCS_PATH
sudo git checkout gh-pages
sudo cp -r CNAME $TMP_DOCS_PATH
sudo cp -r index.html $TMP_DOCS_PATH
sudo cp -r .nojekyll $TMP_DOCS_PATH
sudo rm -r *
sudo cp -r $TMP_DOCS_PATH* .
sudo rm -r $TMP_DOCS_PATH
sudo git add .
sudo git config --global user.email "N/A"
sudo git config --global user.name "gh-actions-bot"
sudo git commit -am "[GH-PAGES] Updated website"

- name: Publish docs
run: |
git push origin gh-pages
sudo git push origin gh-pages
3 changes: 1 addition & 2 deletions python/tutorials/07-extern-functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def asin_kernel(
# We can also customize the libdevice library path by passing the path to the `libdevice` library to the `asin` kernel.

output_triton = torch.empty_like(x)
asin_kernel[grid](x, output_triton, n_elements, BLOCK_SIZE=1024,
extern_libs={'libdevice': '/usr/local/cuda/nvvm/libdevice/libdevice.10.bc'})
asin_kernel[grid](x, output_triton, n_elements, BLOCK_SIZE=1024)
print(output_torch)
print(output_triton)
print(f'The maximum difference between torch and triton is '
Expand Down
231 changes: 0 additions & 231 deletions python/tutorials/08-experimental-block-pointer.py

This file was deleted.

Loading
Loading