File tree Expand file tree Collapse file tree 3 files changed +39
-13
lines changed
Expand file tree Collapse file tree 3 files changed +39
-13
lines changed Original file line number Diff line number Diff line change 1+ <component name =" ProjectRunConfigurationManager" >
2+ <configuration default =" false" name =" Check" type =" CargoCommandRunConfiguration" factoryName =" Cargo Command" nameIsGenerated =" true" >
3+ <option name =" buildProfileId" value =" dev" />
4+ <option name =" command" value =" check" />
5+ <option name =" workingDirectory" value =" file://$PROJECT_DIR$" />
6+ <envs />
7+ <option name =" emulateTerminal" value =" true" />
8+ <option name =" channel" value =" DEFAULT" />
9+ <option name =" requiredFeatures" value =" true" />
10+ <option name =" allFeatures" value =" false" />
11+ <option name =" withSudo" value =" false" />
12+ <option name =" buildTarget" value =" REMOTE" />
13+ <option name =" backtrace" value =" SHORT" />
14+ <option name =" isRedirectInput" value =" false" />
15+ <option name =" redirectInputPath" value =" " />
16+ <method v =" 2" >
17+ <option name =" CARGO.BUILD_TASK_PROVIDER" enabled =" true" />
18+ </method >
19+ </configuration >
20+ </component >
Original file line number Diff line number Diff line change 11[package ]
22name = " stensor"
33authors = [
" Sébastien Crozet <[email protected] >" ]
4- description = " Composable WGSL shaders for linear algebra."
5- homepage = " https://wgmath.rs"
6- repository = " https://github.com/dimforge/wgmath"
4+ description = " Cross-platform GPU tensor library with Slang and Rust."
5+ repository = " https://github.com/dimforge/stensor"
76version = " 0.1.0"
87edition = " 2024"
9- license = " MIT OR Apache-2.0"
8+ license = " Apache-2.0"
109
1110[features ]
1211cuda = [ " cudarc" , " slang-hal/cuda" ]
@@ -38,11 +37,6 @@ anyhow = "1"
3837minislang = " 0.1"
3938
4039[patch .crates-io ]
41- shader-slang = { git = " https://github.com/dimforge/slang-hal" , rev = " 77711e8ffd0bc3ed7a0106ce59c8a4b15b81a464" }
42- minislang = { git = " https://github.com/dimforge/slang-hal" , rev = " 77711e8ffd0bc3ed7a0106ce59c8a4b15b81a464" }
43- slang-hal-derive = { git = " https://github.com/dimforge/slang-hal" , rev = " 77711e8ffd0bc3ed7a0106ce59c8a4b15b81a464" }
44- slang-hal = { git = " https://github.com/dimforge/slang-hal" , rev = " 77711e8ffd0bc3ed7a0106ce59c8a4b15b81a464" }
45-
4640# shader-slang = { path = "../slang-rs" }
4741# minislang = { path = "../slang-hal/crates/minislang" }
4842# slang-hal-derive = { path = "../slang-hal/crates/slang-hal-derive" }
Original file line number Diff line number Diff line change 1- # stensor − GPU Linear Algebra
2-
3- ----
1+ # stensor − cross-platform GPU tensor library with Rust and Slang
42
53The goal of ** stensor** (pronounced s-tensor, aka, Slang tensor) is to essentially be "[ ** nalgebra** ] ( https://nalgebra.rs ) on the
64gpu". It aims (but it isn’t there yet) to expose linear algebra operations (including BLAS-like and LAPACK-like
7- operations) as well as geometric types (quaternions, similarities, etc.) as composable Slang shaders and kernels.
5+ operations) as well as geometric types (quaternions, similarities, etc.) as Slang shaders and kernels.
6+
7+ > ** Warning**
8+ ** stensor** is still very incomplete and under heavy development and is lacking many features.
9+
10+ See also the README of [ slang-hal] ( https://github.com/dimforge/slang-hal/blob/main/README.md ) for information on
11+ supported platforms.
12+
13+ ### Using Slang
14+
15+ In order to compile and run any slang project, be sure to define the ` SLANG_DIR ` environment variable:
16+ 1 . Download the Slang compiler libraries for your platform: https://github.com/shader-slang/slang/releases/tag/v2025.16
17+ 2 . Unzip the downloaded directory, and use its path as value to the ` SLANG_DIR ` environment variable: ` SLANG_DIR=/path/to/slang ` .
18+ Note that the variable must point to the root of the slang installation (i.e. the directory that contains ` bin ` and ` lib ` ).
19+ We recommend adding that as a system-wide environment variables so that it also becomes available to your IDE.
You can’t perform that action at this time.
0 commit comments