MCPcopy Create free account
hub / github.com/ml-explore/mlx / init_cuda

Function init_cuda

python/src/cuda.cpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace nb = nanobind;
9
10void 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}

Callers 1

NB_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected