Expand description
Shared CUDA driver presence/loading helpers used by every cuBLAS / cuSPARSE / cuSOLVER routing module.
The GPU path uses ONE context model: cudarc’s device PRIMARY context
(cuDevicePrimaryCtxRetain, bound in device_runtime::cuda_context_for).
cuBLAS/cuSOLVER/cuSPARSE handles attach to that current context; there is no
separate user cuCtxCreate context (its removal fixed the #1017
NOT_INITIALIZED handle failures). This module keeps only the libcuda
presence probes, byte-size/layout helpers, and the check_cuda status wrap.
Functions§
- check_
cuda - cuda_
compute_ library_ present - Returns whether the platform loader can open the named CUDA compute
library (
cublas,cusolver,cusparse). - cuda_
driver_ library_ present - Returns whether the platform loader can open a CUDA driver library.
- cuda_
library_ candidates - from_
col_ major - from_
col_ major_ inplace - Convert a column-major flat buffer back into row-major
Array2<f64>. - preload_
cuda_ driver - to_
col_ major - Repack a 2D
ndarray::ArrayBase(row-major) into the column-major layout expected by every cuBLAS / cuSOLVER entry point. - to_i32