Skip to content

Commit d65a508

Browse files
committed
chore: update readme and cargo.toml
1 parent d3fa73e commit d65a508

File tree

3 files changed

+39
-13
lines changed

3 files changed

+39
-13
lines changed

.run/Check.run.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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>

Cargo.toml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[package]
22
name = "stensor"
33
authors = ["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"
76
version = "0.1.0"
87
edition = "2024"
9-
license = "MIT OR Apache-2.0"
8+
license = "Apache-2.0"
109

1110
[features]
1211
cuda = [ "cudarc", "slang-hal/cuda" ]
@@ -38,11 +37,6 @@ anyhow = "1"
3837
minislang = "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" }

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
# stensor − GPU Linear Algebra
2-
3-
----
1+
# stensor − cross-platform GPU tensor library with Rust and Slang
42

53
The goal of **stensor** (pronounced s-tensor, aka, Slang tensor) is to essentially be "[**nalgebra**](https://nalgebra.rs) on the
64
gpu". 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.

0 commit comments

Comments
 (0)