Skip to content

Commit e6d90a1

Browse files
committed
Rename to stensor
1 parent 4518d2e commit e6d90a1

28 files changed

+34
-34
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "gla"
2+
name = "stensor"
33
authors = ["Sébastien Crozet <[email protected]>"]
44
description = "Composable WGSL shaders for linear algebra."
55
homepage = "https://wgmath.rs"
@@ -39,6 +39,6 @@ minislang = "0.1"
3939

4040
[patch.crates-io]
4141
shader-slang = { path = "../slang-rs" }
42-
minislang = { path = "../slmath/crates/minislang" }
43-
slang-hal-derive = { path = "../slmath/crates/slang-hal-derive" }
44-
slang-hal = { path = "../slmath/crates/slang-hal" }
42+
minislang = { path = "../slang-hal/crates/minislang" }
43+
slang-hal-derive = { path = "../slang-hal/crates/slang-hal-derive" }
44+
slang-hal = { path = "../slang-hal/crates/slang-hal" }

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# GLA − GPU Linear Algebra
1+
# stensor − GPU Linear Algebra
22

33
<p align="center">
4-
<img src="https://wgmath.rs/img/logo_gla.svg" alt="crates.io" height="200px">
4+
<img src="https://wgmath.rs/img/logo_stensor.svg" alt="crates.io" height="200px">
55
</p>
66

77
----
88

9-
The goal of **gla** is to especially be "[**nalgebra**](https://nalgebra.rs) on the
9+
The goal of **stensor** is to especially be "[**nalgebra**](https://nalgebra.rs) on the
1010
gpu". It aims (but it isn’t there yet) to expose linear algebra operations (including BLAS-like and LAPACK-like
1111
operations) as well as geometric types (quaternions, similarities, etc.) as composable Slang shaders and kernels.

examples/gemm_bench.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use slang_hal::backend::WebGpu;
77
use slang_hal::backend::{Backend, Encoder};
88
use slang_hal::shapes::ViewShapeBuffers;
99
use slang_hal::tensor::{GpuTensor, TensorBuilder};
10-
use gla::linalg::{Gemm, GemmVariant};
10+
use stensor::linalg::{Gemm, GemmVariant};
1111
use wgpu::{BufferUsages, Features, Limits};
1212

1313
#[async_std::main]
@@ -16,7 +16,7 @@ async fn main() -> anyhow::Result<()> {
1616
#[cfg(feature = "cuda")]
1717
let mut cuda = slang_hal::cuda::Cuda::new()?;
1818
let mut entries = vec![];
19-
let compiler = SlangCompiler::new(vec!["crates/gla/shaders".into()]);
19+
let compiler = SlangCompiler::new(vec!["crates/stensor/shaders".into()]);
2020

2121
let variants = ["Gemm", "GemmTr", "GemmFast", "GemmTrFast"];
2222

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sim2;
22

3-
import gla.geometry.rot2;
3+
import stensor.geometry.rot2;
44

55
/// An 2D similarity representing a uniform scale, followed by a rotation, followed by a translation.
66
public struct Sim2 {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sim3;
22

3-
import gla.geometry.quat;
3+
import stensor.geometry.quat;
44

55
/// An 3D similarity representing a uniform scale, followed by a rotation, followed by a translation.
66
public struct Sim3 {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module svd2;
22

3-
import gla.utils.trig;
3+
import stensor.utils.trig;
44

55
// The SVD of a 2x2 matrix.
66
public struct Svd2 {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module svd3;
77

8-
import gla.geometry.quat;
8+
import stensor.geometry.quat;
99

1010

1111
// The SVD of a 3x3 matrix.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import shape;
2-
import gla.utils.limits;
2+
import stensor.utils.limits;
33

44
static const int WORKGROUP_SIZE = 128;
55
// TODO: slang doesn’t have a way to get the total number of workgroups?

0 commit comments

Comments
 (0)