2023-02-02 19:15:23 +01:00
|
|
|
|
|
|
|
#include <pybind11/pybind11.h>
|
|
|
|
|
|
|
|
#include "SpikeGenerationCPU.h"
|
|
|
|
|
|
|
|
namespace py = pybind11;
|
|
|
|
|
2023-02-04 14:26:14 +01:00
|
|
|
PYBIND11_MODULE(PySpikeGenerationCPU, m)
|
|
|
|
{
|
2023-02-02 19:15:23 +01:00
|
|
|
m.doc() = "SpikeGenerationCPU Module";
|
|
|
|
py::class_<SpikeGenerationCPU>(m, "SpikeGenerationCPU")
|
|
|
|
.def(py::init<>())
|
2023-02-04 14:26:14 +01:00
|
|
|
.def("gpu_occupancy_export",
|
|
|
|
&SpikeGenerationCPU::gpu_occupancy_export)
|
|
|
|
.def("gpu_occupancy_import",
|
|
|
|
&SpikeGenerationCPU::gpu_occupancy_import)
|
2023-02-02 19:15:23 +01:00
|
|
|
.def("spike_generation",
|
|
|
|
&SpikeGenerationCPU::entrypoint);
|
|
|
|
}
|