Searched refs:pybind11 (Results 1 - 25 of 60) sorted by relevance

123

/gem5/ext/pybind11/tests/test_cmake_build/
H A Dmain.cpp1 #include <pybind11/pybind11.h>
2 namespace py = pybind11;
H A Dembed.cpp1 #include <pybind11/embed.h>
2 namespace py = pybind11;
/gem5/src/python/pybind11/
H A Dpybind.hh43 #include "pybind11/pybind11.h"
45 void pybind_init_core(pybind11::module &m_native);
46 void pybind_init_debug(pybind11::module &m_native);
48 void pybind_init_event(pybind11::module &m_native);
49 void pybind_init_stats(pybind11::module &m_native);
H A Ddebug.cc45 #include "pybind11/pybind11.h"
46 #include "pybind11/stl.h"
56 namespace py = pybind11;
/gem5/src/systemc/core/
H A Dsc_time_python.cc30 #include "pybind11/operators.h"
41 run(pybind11::module &systemc) override
43 pybind11::class_<sc_core::sc_time> sc_time(systemc, "sc_time");
46 .def(pybind11::init<>())
47 .def(pybind11::init<double, sc_core::sc_time_unit>())
48 .def(pybind11::init<const sc_core::sc_time &>())
58 .def(pybind11::self == pybind11::self)
59 .def(pybind11::self != pybind11
[all...]
H A Dpython.hh33 #include "python/pybind11/pybind.hh"
53 virtual void run(pybind11::module &systemc) = 0;
H A Dpython.cc34 #include "python/pybind11/pybind.hh"
58 python_ready(pybind11::args args)
65 systemc_pybind(pybind11::module &m_internal)
67 pybind11::module m = m_internal.def_submodule("systemc");
H A Dsc_main_python.cc45 sc_main(pybind11::args args)
99 run(pybind11::module &systemc) override
/gem5/src/sim/
H A Dpython.cc30 #include "pybind11/pybind11.h"
38 sim_pybind(pybind11::module &m_internal)
40 pybind11::module m = m_internal.def_submodule("sim");
41 pybind11::class_<
42 Port, std::unique_ptr<Port, pybind11::nodelete>>(m, "Port")
H A Dinit.hh46 #include "pybind11/pybind11.h"
87 void (*init_func)(pybind11::module &),
91 void (*init_func)(pybind11::module &));
100 void (*initFunc)(pybind11::module &);
103 void init(pybind11::module &m);
/gem5/ext/pybind11/tests/test_embed/
H A Dexternal_module.cpp1 #include <pybind11/pybind11.h>
3 namespace py = pybind11;
5 /* Simple test module/test class to check that the referenced internals data of external pybind11
H A Dcatch.cpp4 #include <pybind11/embed.h>
15 namespace py = pybind11;
/gem5/src/python/
H A Dmarshal.cc40 #include <pybind11/embed.h>
44 namespace py = pybind11;
45 using namespace pybind11::literals;
/gem5/src/systemc/tlm_core/2/quantum/
H A Dglobal_quantum_python.cc39 run(pybind11::module &systemc) override
41 pybind11::class_<tlm::tlm_global_quantum>(
44 pybind11::return_value_policy::reference)
/gem5/src/cpu/testers/traffic_gen/
H A Dpygen.hh43 #include "pybind11/pybind11.h"
57 void start(pybind11::object meta_generator);
63 pybind11::iterator metaGenerator;
H A Dpygen.cc46 namespace py = pybind11;
54 PyTrafficGen::start(pybind11::object meta_generator)
85 using namespace pybind11::literals;
/gem5/ext/pybind11/tests/
H A Dcross_module_gil_utils.cpp9 #include <pybind11/pybind11.h>
12 // This file mimics a DSO that makes pybind11 calls but does not define a
18 // shared logic used internally by multiple pybind11 modules.
22 namespace py = pybind11;
H A Dpybind11_tests.h2 #include <pybind11/pybind11.h>
9 namespace py = pybind11;
10 using namespace pybind11::literals;
56 NAMESPACE_BEGIN(pybind11)
65 NAMESPACE_END(pybind11)
H A Dtest_gil_scoped.cpp11 #include <pybind11/functional.h>
H A Dtest_copy_move.cpp13 #include <pybind11/stl.h>
71 NAMESPACE_BEGIN(pybind11)
76 static handle cast(const MoveOnlyInt &m, return_value_policy r, handle p) { return pybind11::cast(m.value, r, p); }
82 static handle cast(const MoveOrCopyInt &m, return_value_policy r, handle p) { return pybind11::cast(m.value, r, p); }
91 static handle cast(const CopyOnlyInt &m, return_value_policy r, handle p) { return pybind11::cast(m.value, r, p); }
98 template <typename T> using cast_op_type = pybind11::detail::cast_op_type<T>;
101 NAMESPACE_END(pybind11)
H A Dtest_local_bindings.cpp13 #include <pybind11/stl.h>
14 #include <pybind11/stl_bind.h>
31 // The main pybind11 test module is loaded first, so this registration will succeed (the second
H A Dtest_eval.cpp11 #include <pybind11/eval.h>
H A Dtest_chrono.cpp12 #include <pybind11/chrono.h>
/gem5/ext/pybind11/include/pybind11/
H A Dembed.h2 pybind11/embed.h: Support for embedding the interpreter
12 #include "pybind11.h"
47 static void PYBIND11_CONCAT(pybind11_init_, name)(pybind11::module &); \
49 auto m = pybind11::module(PYBIND11_TOSTRING(name)); \
53 } catch (pybind11::error_already_set &e) { \
62 pybind11::detail::embedded_module name(PYBIND11_TOSTRING(name), \
64 void PYBIND11_CONCAT(pybind11_init_, name)(pybind11::module &variable)
90 Initialize the Python interpreter. No other pybind11 or CPython API functions can be
97 is controlled by the CPython runtime and is an exception to pybind11's normal behavior
113 Shut down the Python interpreter. No pybind11 o
[all...]
/gem5/ext/pybind11/
H A Dsetup.py7 from pybind11 import __version__
10 # Prevent installation of pybind11 headers by setting
16 'include/pybind11/detail/class.h',
17 'include/pybind11/detail/common.h',
18 'include/pybind11/detail/descr.h',
19 'include/pybind11/detail/init.h',
20 'include/pybind11/detail/internals.h',
21 'include/pybind11/detail/typeid.h',
22 'include/pybind11/attr.h',
23 'include/pybind11/buffer_inf
[all...]

Completed in 17 milliseconds

123