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

Miscellaneous tweaking to the C code #857

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft

Conversation

dkfellows
Copy link
Member

No description provided.

Factors out several sub-functions for greater clarity, and changes
bubble sort to (usually faster) insertion sort.
Includes not using raw addresses in places where we actually know the
type properly (e.g., for the fixed region metadata of a synaptic row)
... use of a random number source per selected random partner. Note that
this works because the original selected neuron ID just needs to be
converted into a subpop/local ID pair. We simply don't need to draw
another random number to achieve the choice of the second part; there
was already sufficient random information in the first random number to
provide an adequate selection. We just need to stop throwing the
information away!
@dkfellows dkfellows self-assigned this Aug 4, 2020
@dkfellows dkfellows added enhancement minor Not especially important. Might be cleanup activity, etc. labels Aug 4, 2020
It shouldn't change any real behaviour: the compiler can infer that the
pointer is non-NULL in all cases. Documenting that we do this is a good
plan anyway.
@dkfellows dkfellows mentioned this pull request Aug 12, 2020
dkfellows added a commit that referenced this pull request Nov 16, 2020
Complicated because rows have multiple VLAs within them. Code recovered
from #857 which was becoming too unwieldy to keep up to date.
@dkfellows dkfellows added this to the 7.0.0 milestone Apr 12, 2021
@dkfellows dkfellows added the C Relating to the C code in sPyNNaker label Sep 27, 2023
@dkfellows dkfellows modified the milestones: 7.0.0, 7.1.0 Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Relating to the C code in sPyNNaker enhancement minor Not especially important. Might be cleanup activity, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant