| 8 | namespace nb = nanobind; |
| 9 | |
| 10 | void init_cuda(nb::module_& m) { |
| 11 | nb::module_ cuda = m.def_submodule("cuda", "mlx.cuda"); |
| 12 | |
| 13 | cuda.def( |
| 14 | "is_available", |
| 15 | &mx::cu::is_available, |
| 16 | R"pbdoc( |
| 17 | Check if the CUDA back-end is available. |
| 18 | )pbdoc"); |
| 19 | } |