Expand description
Thin local wrappers over cudarc::cublaslt::sys for the entry
points cudarc 0.19.4’s safe layer doesn’t expose. Each helper is
unsafe fn if it dereferences raw handles; the safe shape is just
“create / set-attribute / destroy” RAII over the opaque handle.
Used by:
crate::kernel::blas_lt::heuristicforcublasLtMatmulPreferenceCreate+cublasLtMatmulAlgoGetHeuristic,crate::kernel::blas_lt::scalingfor the per-tensor fp8 scale pointer descriptor attributes,crate::kernel::blas_lt::epiloguefor setting theCUBLASLT_MATMUL_DESC_EPILOGUEattribute.
Structs§
- Preference
- RAII handle for a
cublasLtMatmulPreference_t. Created viaPreference::new, destroyed on Drop.
Functions§
- check
- Map a
cublasStatus_tinto anErr(String)for the cuBLASLt status codes we care about. We don’t go throughCublasErrorhere because cudarc’sresultmodule doesn’t expose every variant we touch — the string form is sufficient since these errors funnel straight intoGpuError::LibraryError. - set_
desc_ ⚠i32_ attr - Set an i32-valued attribute on a matmul descriptor (used for
EPILOGUE, the cudarc-bindgencublasLtEpilogue_tis repr(u32) but the cuBLASLt API expectsint). - set_
desc_ ⚠pointer_ attr - Set a pointer-valued attribute on a matmul descriptor (used for
BIAS_POINTER,EPILOGUE_AUX_POINTER, fp8 scale pointers).