https://github.com/dimforge/stensor
Cross-platform GPU linear algebra library with Rust and Slang
https://github.com/dimforge/stensor
Last synced: 13 days ago
JSON representation
Cross-platform GPU linear algebra library with Rust and Slang
- Host: GitHub
- URL: https://github.com/dimforge/stensor
- Owner: dimforge
- License: apache-2.0
- Created: 2025-09-08T15:17:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-09-20T09:31:40.000Z (6 months ago)
- Last Synced: 2025-10-03T06:47:35.851Z (5 months ago)
- Language: Rust
- Size: 84 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# stensor − cross-platform GPU tensor library with Rust and Slang
The goal of **stensor** (pronounced s-tensor, aka, Slang tensor) is to essentially be "[**nalgebra**](https://nalgebra.rs) on the
gpu". It aims (but it isn’t there yet) to expose linear algebra operations (including BLAS-like and LAPACK-like
operations) as well as geometric types (quaternions, similarities, etc.) as Slang shaders and kernels.
> **Warning**
> **stensor** is still very incomplete and under heavy development and is lacking many features.
See also the README of [slang-hal](https://github.com/dimforge/slang-hal/blob/main/README.md) for information on
supported platforms.
### Using Slang
In order to compile and run any slang project, be sure to define the `SLANG_DIR` environment variable:
1. Download the Slang compiler libraries for your platform:
2. Unzip the downloaded directory, and use its path as value to the `SLANG_DIR` environment variable: `SLANG_DIR=/path/to/slang`.
Note that the variable must point to the root of the slang installation (i.e. the directory that contains `bin` and `lib`).
We recommend adding that as a system-wide environment variables so that it also becomes available to your IDE.