We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa0746 commit 4981f62Copy full SHA for 4981f62
src/pybind/cudamatrix/cu_device_pybind.cc
@@ -36,6 +36,16 @@ void pybind_cu_device(py::module& m) {
36
},
37
py::arg("device_id"));
38
39
+ m.def("SelectGpuId",
40
+ [](const std::string& use_gpu) {
41
+#if HAVE_CUDA == 1
42
+ CuDevice::Instantiate().SelectGpuId(use_gpu);
43
+#else
44
+ KALDI_LOG << "Kaldi is NOT compiled with GPU! Ignore it.";
45
+#endif
46
+ },
47
+ py::arg("use_gpu"));
48
+
49
m.def("CuDeviceAllowMultithreading", []() {
50
#if HAVE_CUDA == 1
51
CuDevice::Instantiate().AllowMultithreading();
0 commit comments