17 py::module m_cuda = m.def_submodule(
"cuda");
20 "Returns the number of available CUDA devices. Returns 0 if "
21 "CloudViewer is not compiled with CUDA support.");
24 "Returns true if CloudViewer is compiled with CUDA support and at "
25 "least one compatible CUDA device is detected.");
27 "Releases CUDA memory manager cache. This is typically used for "
33 cuda::Synchronize(device.value());
38 "Synchronizes CUDA devices. If no device is specified, all CUDA "
39 "devices will be synchronized. No effect if the specified device "
40 "is not a CUDA device. No effect if CloudViewer is not compiled "
43 "device"_a = py::none());
constexpr bool has_value() const noexcept
void ReleaseCache()
Releases CUDA memory manager cache. This is typically used for debugging.
void pybind_cuda_utils(py::module &m)
Generic file read and write utility for python interface.