Skip to content

Conversation

pnbabu
Copy link
Contributor

@pnbabu pnbabu commented May 7, 2025

No description provided.

Copy link

github-actions bot commented May 8, 2025

🐰 Bencher Report

Branch1208/merge
Testbedubuntu-latest

🚨 1 Alert

IterationBenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
0tests/nest_continuous_benchmarking/test_nest_continuous_benchmarking.py::TestNESTContinuousBenchmarking::test_stdp_nn_synapseLatency
seconds (s)
📈 plot
🚷 threshold
🚨 alert (🔔)
3.88 s
(+13.04%)Baseline: 3.43 s
3.78 s
(102.76%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
seconds (s)
(Result Δ%)
Upper Boundary
seconds (s)
(Limit %)
tests/nest_continuous_benchmarking/test_nest_continuous_benchmarking.py::TestNESTContinuousBenchmarking::test_stdp_nn_synapse📈 view plot
🚷 view threshold
🚨 view alert (🔔)
3.88 s
(+13.04%)Baseline: 3.43 s
3.78 s
(102.76%)

BenchmarkLatencyBenchmark Result
seconds (s)
(Result Δ%)
Upper Boundary
seconds (s)
(Limit %)
tests/nest_continuous_benchmarking/test_nest_continuous_benchmarking.py::TestNESTContinuousBenchmarking::test_stdp_nn_synapse📈 view plot
🚷 view threshold
🚨 view alert (🔔)
3.24 s
(-5.50%)Baseline: 3.42 s
3.77 s
(85.91%)

BenchmarkLatencyBenchmark Result
seconds (s)
(Result Δ%)
Upper Boundary
seconds (s)
(Limit %)
tests/nest_continuous_benchmarking/test_nest_continuous_benchmarking.py::TestNESTContinuousBenchmarking::test_stdp_nn_synapse📈 view plot
🚷 view threshold
🚨 view alert (🔔)
3.25 s
(-5.05%)Baseline: 3.42 s
3.77 s
(86.32%)

🐰 View full continuous benchmarking report in Bencher

@pnbabu pnbabu marked this pull request as ready for review August 13, 2025 13:59
@pnbabu pnbabu requested a review from clinssen August 13, 2025 14:00
y += [syn_stats["y"]]
z += [syn_stats["z"]]

# TODO: Adjust tolerance
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you take care of this TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tolerance is a bit high. The tests fail if I decrease the tolerance. I tried a few things, such as adjusting rtol and atol, but couldn't lower the difference. Do you have any ideas?

@@ -294,7 +294,7 @@ def transform_neuron_synapse_pair_(self, neuron: ASTModel, synapse: ASTModel):
strictly_synaptic_vars = ["t"] # "seed" this with the predefined variable t

if self.option_exists("strictly_synaptic_vars") and removesuffix(synapse.get_name(), FrontendConfiguration.suffix) in self.get_option("strictly_synaptic_vars").keys() and self.get_option("strictly_synaptic_vars")[removesuffix(synapse.get_name(), FrontendConfiguration.suffix)]:
strictly_synaptic_vars.append(self.get_option("strictly_synaptic_vars")[removesuffix(synapse.get_name(), FrontendConfiguration.suffix)])
strictly_synaptic_vars.extend(self.get_option("strictly_synaptic_vars")[removesuffix(synapse.get_name(), FrontendConfiguration.suffix)])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug, right? How could this ever have worked before?

Copy link
Contributor Author

@pnbabu pnbabu Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The synapse model used in the test in this PR has variables that strictly belong to the synapse. Hence, I added them to strictly_synaptic_vars in the codegen_opts introduced in #1229.
This then caused the append in the line to create a list of lists, which failed at line:

assert type(var) is str

That's why I changed it to extend. Perhaps we should change all the append calls here to extend instead to avoid errors.

@clinssen
Copy link
Contributor

clinssen commented Sep 5, 2025

Could you also update running_nest.rst, especially under the heading "Event-based updating of synapses"? Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants