Skip to content

Commit 252e13c

Browse files
authored
Mark slangpy as deprecated and remove from user-guide. (#6300)
1 parent f5551eb commit 252e13c

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

docs/user-guide/a1-02-slangpy.md docs/deprecated/a1-02-slangpy.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
---
22
layout: user-guide
3+
permalink: "docs/user-guide
4+
/a1-02-slangpy"
35
---
46

57
Using Slang to Write PyTorch Kernels
68
=========================================================
9+
10+
> #### Deprecated Feature
11+
> Note: This documentation is about `slang-torch`, an old way to use Slang with Python and PyTorch.
12+
> Developers who are building new projects should use <a href="https://slangpy.shader-slang.org">SlangPy</a> instead.
13+
714
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.
815

916
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.

docs/user-guide/toc.html

-10
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,6 @@
159159
<li data-link="a1-01-matrix-layout#overriding-default-matrix-layout"><span>Overriding default matrix layout</span></li>
160160
</ul>
161161
</li>
162-
<li data-link="a1-02-slangpy"><span>Using Slang to Write PyTorch Kernels</span>
163-
<ul class="toc_list">
164-
<li data-link="a1-02-slangpy#getting-started-with-slangtorch"><span>Getting Started with SlangTorch</span></li>
165-
<li data-link="a1-02-slangpy#specializing-shaders-using-slangtorch"><span>Specializing shaders using slangtorch</span></li>
166-
<li data-link="a1-02-slangpy#back-propagating-derivatives-through-complex-access-patterns"><span>Back-propagating Derivatives through Complex Access Patterns</span></li>
167-
<li data-link="a1-02-slangpy#manually-binding-kernels"><span>Manually binding kernels</span></li>
168-
<li data-link="a1-02-slangpy#builtin-library-support-for-pytorch-interop"><span>Builtin Library Support for PyTorch Interop</span></li>
169-
<li data-link="a1-02-slangpy#type-marshalling-between-slang-and-python"><span>Type Marshalling Between Slang and Python</span></li>
170-
</ul>
171-
</li>
172162
<li data-link="a1-03-obfuscation"><span>Obfuscation</span>
173163
<ul class="toc_list">
174164
<li data-link="a1-03-obfuscation#obfuscation-in-slang"><span>Obfuscation in Slang</span></li>

0 commit comments

Comments
 (0)