diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-28 17:16:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-28 17:16:07 -0700 |
| commit | 3ca504f1d93d34e9246505136dfd11f224020841 (patch) | |
| tree | c07cefa0261e4b7ff59002c7fb2bea493496498b /docs | |
| parent | 0ea68f28e7b7aa4086278dd181ddf247c00faade (diff) | |
Update a1-02-slangpy.md
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/user-guide/a1-02-slangpy.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user-guide/a1-02-slangpy.md b/docs/user-guide/a1-02-slangpy.md index 6faf6ad47..05ec5d894 100644 --- a/docs/user-guide/a1-02-slangpy.md +++ b/docs/user-guide/a1-02-slangpy.md @@ -8,7 +8,7 @@ Using Slang to Write PyTorch Kernels If you are a PyTorch user looking for a way to write complex, high performance and automatically differentiated kernel functions in a per-thread instead of full-tensor style, give Slang a try. Slang is evolved from on a traditional shading language that were designed to provide a simple way to define kernel functions that runs extremely fast in graphics applications. With the latest addition of automatic differentiation and PyTorch interop features, Slang provides a streamlined solution to author auto-differentiated kernels -that runs at the speed of light with a strongly typed, per-thread programming model. +that runs at the speed of light with a strongly typed, per-thread programming model. The advantage of a per-thread programming model in kernel programming is that developers no longer need to worry maintaining masks for branches. When a kernel is written in Slang, you can use all the control flow statements, composite data types (structs, arrays etc.) and and function calls without any additional efforts. Code written with these language constructs can be automatically differentiated by the compiler without restrictions. ## Getting Started with slangpy |
