From cce90942e3735e138dfd31a2cbace765b2ab8e28 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 28 Mar 2023 17:20:36 -0700 Subject: Update a1-02-slangpy.md --- docs/user-guide/a1-02-slangpy.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/user-guide/a1-02-slangpy.md b/docs/user-guide/a1-02-slangpy.md index 05ec5d894..dd2199065 100644 --- a/docs/user-guide/a1-02-slangpy.md +++ b/docs/user-guide/a1-02-slangpy.md @@ -8,7 +8,9 @@ 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. 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. +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 about 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. Slang is a strongly typed language so you will never run into type errors at runtime, most code errors can be discovered as you type in your code in the editor thanks to the [compiler's coding assistance service}(https://marketplace.visualstudio.com/items?itemName=shader-slang.slang-language-extension). ## Getting Started with slangpy -- cgit v1.2.3