Skip to main content

cuda_driver_library_present

Function cuda_driver_library_present 

Source
pub fn cuda_driver_library_present() -> bool
Expand description

Returns whether the platform loader can open a CUDA driver library.

This deliberately uses gam’s own libloading probe rather than cudarc::driver::sys::is_culib_present(): cudarc 0.19’s generated dynamic-loader helpers are exactly what emit the noisy panic_no_lib_found message when a CPU-only host lacks libcuda. Runtime availability checks need to stay completely outside cudarc until this function has established that the driver shared library exists.