From 9286b2dd9bd198d40017ca18a74f5d0449d4c0c4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 3 Aug 2026 16:34:19 -0700 Subject: Hot Swapping models --- src/benchmark.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/benchmark.h (limited to 'src/benchmark.h') diff --git a/src/benchmark.h b/src/benchmark.h new file mode 100644 index 0000000..cd79d50 --- /dev/null +++ b/src/benchmark.h @@ -0,0 +1,27 @@ +#ifndef BENCHMARK_H +#define BENCHMARK_H + +#include "crossbar_generator.h" +#include "read_crossbar.h" +#include "spires_interface.h" +#include + +typedef struct { + const char *model_path; + const char *subcircuit_name; +} MemModel; + +int run_benchmark(const spires_reservoir_config *config, + spires_reservoir *reservoir, + Reservoir_State_Matrix *state_matrix, + const double *target_outputs, const char *model_path, + const char *subcircuit_name); + +int plot_raster(const Reservoir_State_Matrix *matrix, size_t neurons_to_plot, + double spike_threshold); + +int plot_reservoir_predictions(const double *expected, const double *predicted, + size_t num_samples, size_t num_outputs, + size_t output_to_plot); + +#endif -- cgit v1.2.3