For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
Backend
struct Backend
Identifies which vendor BLAS library backs a matmul operation.
Acts as a comptime-selectable tag (AUTOMATIC, CUBLAS, CUBLASLT,
ROCBLAS, HIPBLASLT) used to parameterize Handle and dispatch to the
matching vendor implementation.
Implemented traitsβ
AnyType,
Copyable,
Equatable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
comptime membersβ
AUTOMATICβ
comptime AUTOMATIC = Backend(Int(0))
CUBLASβ
comptime CUBLAS = Backend(Int(1))
CUBLASLTβ
comptime CUBLASLT = Backend(Int(2))
HIPBLASLTβ
comptime HIPBLASLT = Backend(Int(4))
ROCBLASβ
comptime ROCBLAS = Backend(Int(3))
Methodsβ
__init__β
def __init__(value: Int) -> Self
__eq__β
__ne__β
__is__β
__isnot__β
__int__β
write_toβ
def write_to(self, mut writer: T)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!