Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small constant cache fix #589

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Small constant cache fix #589

merged 1 commit into from
Oct 10, 2023

Conversation

neworderofjamie
Copy link
Contributor

When I fixed a race condition in the system for tracking neuron's previous spike time in #414, I added a new kernel which had an associated new array of indices used for the binary search amongst merged groups. Because of the memory access pattern of the binary search, these take first priority when the 64KB of constant cache is handed out. However, I forgot to take these indices into account, meaning that models with lots of neuron and synapse groups and learning rules using previous spike times could overrun the constant cache.

Fixes #588

@neworderofjamie neworderofjamie added this to the GeNN 4.9.0 milestone May 17, 2023
@neworderofjamie neworderofjamie requested a review from tnowotny May 17, 2023 14:33
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (cf51800) 88.79% compared to head (b78f2f6) 88.80%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #589   +/-   ##
=======================================
  Coverage   88.79%   88.80%           
=======================================
  Files          76       76           
  Lines       12428    12429    +1     
=======================================
+ Hits        11036    11037    +1     
  Misses       1392     1392           
Impacted Files Coverage Δ
src/genn/backends/cuda/backend.cc 80.39% <100.00%> (+0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@neworderofjamie neworderofjamie merged commit d65662d into master Oct 10, 2023
@neworderofjamie neworderofjamie deleted the constant_cache_fix branch October 10, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constant cache issues
1 participant