Crate cubecl_std

Crate cubecl_std 

Source
Expand description

Cubecl standard library.

Modules§

hypot
quant
Quantization functionality required in views
size_of
tensor
to_degrees
to_radians
type_size

Structs§

ReinterpretSlice
This struct allows to take a slice of Line<S> and reinterpret it as a slice of T. Semantically, this is equivalent to reinterpreting the slice of Line<S> to a slice of T. When indexing, the index is valid in the casted list.
ReinterpretSliceExpand
ReinterpretSliceMut
This struct allows to take a mutable slice of Line<S> and reinterpret it as a mutable slice of T. Semantically, this is equivalent to reinterpreting the slice of Line<S> to a mutable slice of T. When indexing, the index is valid in the casted list.
ReinterpretSliceMutExpand
Swizzle
Swizzling strategy for a buffer. See the following docs from cutlass:
SwizzleCompilationArg
SwizzleExpand
SwizzleLaunch

Enums§

CubeOption
CubeOptionArgs
CubeOptionCompilationArg
CubeOptionExpand
FastDivmod
Create a fast-divmod object if supported, or a regular fallback if not. This precalculates certain values on the host, in exchange for making division and modulo operations on the GPU much faster. Only supports u32 right now to allow for a simpler algorithm. It’s mostly used for indices regardless.
FastDivmodArgs
FastDivmodCompilationArg
FastDivmodExpand

Functions§

hypot
Computes the hypotenuse of a right triangle given the lengths of the other two sides.
size_of
to_degrees
Converts an angle from radians to degrees.
to_radians
Converts an angle from degrees to radians.
type_size
Retrieve the type size of a lined buffer.