Debian Codegraph @

src/pycolmap/util/cuda.cc

raw
1 #include "colmap/util/cuda.h"
2
3 #include <pybind11/pybind11.h>
4
5 using namespace colmap;
6 namespace py = pybind11;
7
8 #if defined(COLMAP_CUDA_ENABLED)
9
10 void BindCudaUtils(py::module& m) {
11 m.def("get_num_cuda_devices",
12 &GetNumCudaDevices,
13 "Get the number of available CUDA devices.");
14 }
15
16 #endif // COLMAP_CUDA_ENABLED