diff options
| -rw-r--r-- | docs/deprecated/a1-02-slangpy.md (renamed from docs/user-guide/a1-02-slangpy.md) | 7 | ||||
| -rw-r--r-- | docs/user-guide/toc.html | 10 |
2 files changed, 7 insertions, 10 deletions
diff --git a/docs/user-guide/a1-02-slangpy.md b/docs/deprecated/a1-02-slangpy.md index 8a9828557..f3dd24a92 100644 --- a/docs/user-guide/a1-02-slangpy.md +++ b/docs/deprecated/a1-02-slangpy.md @@ -1,9 +1,16 @@ --- layout: user-guide +permalink: "docs/user-guide +/a1-02-slangpy" --- Using Slang to Write PyTorch Kernels ========================================================= + +> #### Deprecated Feature +> Note: This documentation is about `slang-torch`, an old way to use Slang with Python and PyTorch. +> Developers who are building new projects should use <a href="https://slangpy.shader-slang.org">SlangPy</a> instead. + If you are a PyTorch user seeking to write complex, high-performance, and automatically differentiated kernel functions using a per-thread programming model, we invite you to try Slang. Slang is a cutting-edge shading language that provides a straightforward way to define kernel functions that run incredibly fast in graphics applications. With the latest addition of automatic differentiation and PyTorch interop features, Slang offers an efficient solution for developing auto-differentiated kernels that run at lightning speed with a strongly typed, per-thread programming model. One of the primary advantages of a per-thread programming model in kernel programming is the elimination of concerns regarding maintaining masks for branches. When developing a kernel in Slang, you can use all control flow statements, composite data types (structs, arrays, etc.), and function calls without additional effort. Code created with these language constructs can be automatically differentiated by the compiler without any restrictions. Additionally, Slang is a strongly typed language, which ensures that you will never encounter type errors at runtime. Most code errors can be identified as you type thanks to the [compiler's coding assistance service](https://marketplace.visualstudio.com/items?itemName=shader-slang.slang-language-extension), further streamlining the development process. diff --git a/docs/user-guide/toc.html b/docs/user-guide/toc.html index 713c5d8e6..01e9d09b0 100644 --- a/docs/user-guide/toc.html +++ b/docs/user-guide/toc.html @@ -159,16 +159,6 @@ <li data-link="a1-01-matrix-layout#overriding-default-matrix-layout"><span>Overriding default matrix layout</span></li> </ul> </li> -<li data-link="a1-02-slangpy"><span>Using Slang to Write PyTorch Kernels</span> -<ul class="toc_list"> -<li data-link="a1-02-slangpy#getting-started-with-slangtorch"><span>Getting Started with SlangTorch</span></li> -<li data-link="a1-02-slangpy#specializing-shaders-using-slangtorch"><span>Specializing shaders using slangtorch</span></li> -<li data-link="a1-02-slangpy#back-propagating-derivatives-through-complex-access-patterns"><span>Back-propagating Derivatives through Complex Access Patterns</span></li> -<li data-link="a1-02-slangpy#manually-binding-kernels"><span>Manually binding kernels</span></li> -<li data-link="a1-02-slangpy#builtin-library-support-for-pytorch-interop"><span>Builtin Library Support for PyTorch Interop</span></li> -<li data-link="a1-02-slangpy#type-marshalling-between-slang-and-python"><span>Type Marshalling Between Slang and Python</span></li> -</ul> -</li> <li data-link="a1-03-obfuscation"><span>Obfuscation</span> <ul class="toc_list"> <li data-link="a1-03-obfuscation#obfuscation-in-slang"><span>Obfuscation in Slang</span></li> |
