Skip to main content

tl_is_backend_available

Function tl_is_backend_available 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tl_is_backend_available( backend: *const c_char, ) -> i32
Expand description

Check if a backend is available

§Parameters

  • backend: The backend name (e.g., “cpu”, “parallel”, “simd”, “gpu”)

§Returns

1 if available, 0 if not

§Safety

The caller must ensure that backend is a valid null-terminated string.