We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b9bb2 commit c6685deCopy full SHA for c6685de
1 file changed
src/wrap_cl_part_2.cpp
@@ -299,6 +299,7 @@ void pyopencl_expose_part_2(py::module &m)
299
typedef svm_arg_wrapper cls;
300
py::class_<cls>(m, "SVM", py::dynamic_attr())
301
.def(py::init<py::object>())
302
+ .def("_ptr_as_int", [](cls &self) { return (intptr_t) self.ptr(); })
303
.def("_size", &cls::size)
304
;
305
}
0 commit comments