2021-03-06 17:35:11 -05:00
<!DOCTYPE html>
< html class = "writer-html5" lang = "en" >
< head >
< meta charset = "utf-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
< title > Tutorials — Triton documentation< / title >
< link rel = "stylesheet" href = "../../_static/css/theme.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../_static/pygments.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../_static/gallery.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../_static/gallery-binder.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../_static/gallery-dataframe.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../_static/gallery-rendered-html.css" type = "text/css" / >
<!-- [if lt IE 9]>
< script src = "../../_static/js/html5shiv.min.js" > < / script >
<![endif]-->
< script type = "text/javascript" id = "documentation_options" data-url_root = "../../" src = "../../_static/documentation_options.js" > < / script >
< script src = "../../_static/jquery.js" > < / script >
< script src = "../../_static/underscore.js" > < / script >
< script src = "../../_static/doctools.js" > < / script >
< script type = "text/javascript" src = "../../_static/js/theme.js" > < / script >
< link rel = "index" title = "Index" href = "../../genindex.html" / >
< link rel = "search" title = "Search" href = "../../search.html" / >
< link rel = "next" title = "Vector Addition" href = "01-vector-add.html" / >
< link rel = "prev" title = "Installation" href = "../installation.html" / >
< / head >
< body class = "wy-body-for-nav" >
< div class = "wy-grid-for-nav" >
< nav data-toggle = "wy-nav-shift" class = "wy-nav-side" >
< div class = "wy-side-scroll" >
< div class = "wy-side-nav-search" >
< a href = "../../index.html" class = "icon icon-home" > Triton
< / a >
< div role = "search" >
< form id = "rtd-search-form" class = "wy-form" action = "../../search.html" method = "get" >
< input type = "text" name = "q" placeholder = "Search docs" / >
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< / div >
< / div >
< div class = "wy-menu wy-menu-vertical" data-spy = "affix" role = "navigation" aria-label = "main navigation" >
< p class = "caption" > < span class = "caption-text" > Getting Started< / span > < / p >
< ul class = "current" >
< li class = "toctree-l1" > < a class = "reference internal" href = "../installation.html" > Installation< / a > < / li >
< li class = "toctree-l1 current" > < a class = "current reference internal" href = "#" > Tutorials< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "01-vector-add.html" > Vector Addition< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "02-fused-softmax.html" > Fused Softmax< / a > < / li >
2021-03-15 13:58:20 -04:00
< li class = "toctree-l2" > < a class = "reference internal" href = "03-matrix-multiplication.html" > Matrix Multiplication< / a > < / li >
2021-03-06 17:35:11 -05:00
< / ul >
< / li >
< / ul >
< / div >
< / div >
< / nav >
< section data-toggle = "wy-nav-shift" class = "wy-nav-content-wrap" >
< nav class = "wy-nav-top" aria-label = "top navigation" >
< i data-toggle = "wy-nav-top" class = "fa fa-bars" > < / i >
< a href = "../../index.html" > Triton< / a >
< / nav >
< div class = "wy-nav-content" >
< div class = "rst-content" >
< div role = "navigation" aria-label = "breadcrumbs navigation" >
< ul class = "wy-breadcrumbs" >
< li > < a href = "../../index.html" class = "icon icon-home" > < / a > » < / li >
< li > Tutorials< / li >
< li class = "wy-breadcrumbs-aside" >
< a href = "../../_sources/getting-started/tutorials/index.rst.txt" rel = "nofollow" > View page source< / a >
< / li >
< / ul >
< hr / >
< / div >
< div role = "main" class = "document" itemscope = "itemscope" itemtype = "http://schema.org/Article" >
< div itemprop = "articleBody" >
< div class = "section" id = "tutorials" >
< span id = "sphx-glr-getting-started-tutorials" > < / span > < h1 > Tutorials< a class = "headerlink" href = "#tutorials" title = "Permalink to this headline" > ¶< / a > < / h1 >
< p > Below is a gallery of tutorials for writing various basic operations with Triton. It is recommended that you read through the tutorials in order, starting with the simplest one.< / p >
< div class = "sphx-glr-thumbcontainer" tooltip = "- The basic syntax of the Triton programming language - The best practices for creating PyTorch..." > < div class = "figure align-default" id = "id1" >
< img alt = "Vector Addition" src = "../../_images/sphx_glr_01-vector-add_thumb.png" / >
< p class = "caption" > < span class = "caption-text" > < a class = "reference internal" href = "01-vector-add.html#sphx-glr-getting-started-tutorials-01-vector-add-py" > < span class = "std std-ref" > Vector Addition< / span > < / a > < / span > < a class = "headerlink" href = "#id1" title = "Permalink to this image" > ¶< / a > < / p >
< / div >
< / div > < div class = "toctree-wrapper compound" >
< / div >
< div class = "sphx-glr-thumbcontainer" tooltip = "- The benefits of kernel fusion for bandwidth-bound operations. - The syntax and usage of reduc..." > < div class = "figure align-default" id = "id2" >
< img alt = "Fused Softmax" src = "../../_images/sphx_glr_02-fused-softmax_thumb.png" / >
< p class = "caption" > < span class = "caption-text" > < a class = "reference internal" href = "02-fused-softmax.html#sphx-glr-getting-started-tutorials-02-fused-softmax-py" > < span class = "std std-ref" > Fused Softmax< / span > < / a > < / span > < a class = "headerlink" href = "#id2" title = "Permalink to this image" > ¶< / a > < / p >
< / div >
< / div > < div class = "toctree-wrapper compound" >
< / div >
2021-03-15 13:58:20 -04:00
< div class = "sphx-glr-thumbcontainer" tooltip = "- The block-level matrix multiplication operator @ - Multi-dimensional pointer arithmetic - Pro..." > < div class = "figure align-default" id = "id3" >
< img alt = "Matrix Multiplication" src = "../../_images/sphx_glr_03-matrix-multiplication_thumb.png" / >
< p class = "caption" > < span class = "caption-text" > < a class = "reference internal" href = "03-matrix-multiplication.html#sphx-glr-getting-started-tutorials-03-matrix-multiplication-py" > < span class = "std std-ref" > Matrix Multiplication< / span > < / a > < / span > < a class = "headerlink" href = "#id3" title = "Permalink to this image" > ¶< / a > < / p >
< / div >
< / div > < div class = "toctree-wrapper compound" >
< / div >
2021-03-06 17:35:11 -05:00
< div class = "sphx-glr-clear" > < / div > < div class = "sphx-glr-footer class sphx-glr-footer-gallery docutils container" >
< div class = "sphx-glr-download sphx-glr-download-python docutils container" >
< p > < a class = "reference download internal" download = "" href = "../../_downloads/763344228ae6bc253ed1a6cf586aa30d/tutorials_python.zip" > < code class = "xref download docutils literal notranslate" > < span class = "pre" > Download< / span > < span class = "pre" > all< / span > < span class = "pre" > examples< / span > < span class = "pre" > in< / span > < span class = "pre" > Python< / span > < span class = "pre" > source< / span > < span class = "pre" > code:< / span > < span class = "pre" > tutorials_python.zip< / span > < / code > < / a > < / p >
< / div >
< div class = "sphx-glr-download sphx-glr-download-jupyter docutils container" >
< p > < a class = "reference download internal" download = "" href = "../../_downloads/662999063954282841dc90b8945f85ce/tutorials_jupyter.zip" > < code class = "xref download docutils literal notranslate" > < span class = "pre" > Download< / span > < span class = "pre" > all< / span > < span class = "pre" > examples< / span > < span class = "pre" > in< / span > < span class = "pre" > Jupyter< / span > < span class = "pre" > notebooks:< / span > < span class = "pre" > tutorials_jupyter.zip< / span > < / code > < / a > < / p >
< / div >
< / div >
< p class = "sphx-glr-signature" > < a class = "reference external" href = "https://sphinx-gallery.github.io" > Gallery generated by Sphinx-Gallery< / a > < / p >
< / div >
< / div >
< / div >
< footer >
< div class = "rst-footer-buttons" role = "navigation" aria-label = "footer navigation" >
< a href = "01-vector-add.html" class = "btn btn-neutral float-right" title = "Vector Addition" accesskey = "n" rel = "next" > Next < span class = "fa fa-arrow-circle-right" aria-hidden = "true" > < / span > < / a >
< a href = "../installation.html" class = "btn btn-neutral float-left" title = "Installation" accesskey = "p" rel = "prev" > < span class = "fa fa-arrow-circle-left" aria-hidden = "true" > < / span > Previous< / a >
< / div >
< hr / >
< div role = "contentinfo" >
< p >
© Copyright 2020, Philippe Tillet.
< / p >
< / div >
Built with < a href = "https://www.sphinx-doc.org/" > Sphinx< / a > using a
< a href = "https://github.com/readthedocs/sphinx_rtd_theme" > theme< / a >
provided by < a href = "https://readthedocs.org" > Read the Docs< / a > .
< / footer >
< / div >
< / div >
< / section >
< / div >
< script type = "text/javascript" >
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
< / script >
< / body >
< / html >