spinnaker_tools
SpiNNaker API, sark, sc&mp, bmp firmware and build tools
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.5%) to scientific vocabulary
Keywords
Repository
SpiNNaker API, sark, sc&mp, bmp firmware and build tools
Basic Info
Statistics
- Stars: 18
- Watchers: 17
- Forks: 4
- Open Issues: 34
- Releases: 12
Topics
Metadata Files
README.md
SpiNNaker Low-Level Software Tools
Installation and Setup
Edit the setup file so that it points to your installations of ARM and/or GNU software development tools. You only need one of these two tools installed to build standard applications.
Search for the string "EDIT HERE" to find the two edit points.
The version of the GNU tools that was used to test this release is
gcc 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]This (and more recent versions) can be downloaded from this web site.
The version of the ARM tools that was used to test this release is
ARM C/C++ Compiler, 4.1 [Build 894]Source the setup file in the directory in which it lives
source ./setupBuild SARK and spin1_api for ARM or GNU tools (you will probably only want to do one of these)
make GNU=0 # If you are using ARM tools make # If you are using GNU tools
Use of the Tools
There is a generic make file which works for both C and C++ (make/app.make) which is used to build simple applications. The preferred way to use this is to create a Makefile which looks something like:
# A single-file C app called 'example.c' or # a single-file C++ app called 'example.cpp' APP := example include $(SPINN_DIRS)/make/app.makeThe following variables may be set at the top of your Makefile, in environment variables or given as arguments to 'make':
APP- to select the default source file to build (required)GNU- to choose ARM or GNU tools (GNU=1)THUMB- to choose to generate ARM or Thumb code (THUMB=0)DEBUG- to include debugging info in the ELF files (DEBUG=0)API- if you want link with "spin1_api" or not (API=1)GP- if your GNU binaries don't have names like "arm-none-eabi-gcc" (GP=arm-none-eabi)Go into the "apps/hello" directory to build your first SpiNNaker app.
cd apps/hello make # GNU tools make GNU=0 # ARM toolsThis should make
hello.aplx, which is an executable file that you can load into SpiNNakerNow start
tubotronon your workstation to get output from the program as it runstubotron &Note that if you see this error message when you start
tubotronfailed to create socket: Address already in useit is usually because there is already a tubotron (or tubogrid) running and it needs exclusive use of a UDP port.
Now start
ybugto bootstrap your SpiNNaker system and load and run thehelloapplication. You'll need to know the IP address of (one of) your boards to do this (here we'll use192.168.240.253as an example). If you aren't sure what state your board is in you should reset it by pressing the reset button.ybug 192.168.240.253You should see a start-up message and then a prompt. At the prompt type the following.
boot app_load hello.aplx . 1 16 psThis loads the code into core 1 on a single SpiNNaker chip and assigns it an application ID of 16. You should see a "Hello world" message in the Tubotron window. The
pscommand displays the status of every core on the SpiNNaker chip.The
helloapplication also sends output to an internal I/O buffer on the chip. You can see this by using theiobufcommand and telling it which core's buffer to displayiobuf 1Finally, to clear the I/O buffer and stop the application you can use the "app_stop" command to remove all applications with a given ID and any resources they have used. Exit "ybug" with "quit"
app_stop 16 ps quitNote: If you have a SpiNN-1, SpiNN-2 or SpiNN-3 board and want all the LEDs on those boards to function (not just the green LED0), then one of the following alternative boot commands may be used:
boot scamp.boot spin1.conf boot scamp.boot spin2.conf boot scamp.boot spin3.confNow build a more complex application (called "
simple"!) which runs on 4 chipscd ../simple makeStart
ybugagain to load and run the code. There should be no need to run thebootcommand again. The command to load a program to multiple chips isapp_loadand it has to be told which chips (allfor all of them), which core (just 1 again) and an application ID (17 this time)Because this application runs on multiple cores, the startup of the cores needs to be synchronised. When a core reaches its synchronisation point (or barrier) it enters a wait state known as SYNC0. To allow the cores to proceed beyond the barrier a "signal" has to be sent to all cores to cause them to proceed. The
app_sigcommand is used to do this, sending the signalsync0. In this example, the cores reach their barrier very quickly and so it is OK to send the signal immediately after theapp_load. In other cases, a delay may be necessary.ybug 192.168.240.253 app_load simple.aplx all 1 17 ps app_sig all 17 sync0 psThis program runs for around 10 seconds, flashing red LEDs as it goes. (Your board may not have red LEDs). Output from this example goes to the internal I/O buffer and you can view it with the
iobufcommand. You can clean up withapp_stopagain and quitybug.iobuf 1 app_stop 17 ps quit
Additional Resources
There are some more examples in the
appsdirectory. Each of these has axxx.ybugfile which contains theybugcommands to run the application. It also contains, as comments, the commands you need to use to build the application and start any visualisation programs that the application needs. These examples includehello- Hello World (as above)simple- a contrived demo of the SpiNNaker APIdata_abort- causes a data abort to demonstrate debugginginterrupt- demonstrates a bare-metal interrupt handlerring- shows how to set up routing tables for core-to-core commsrandom- random number generation and simple graphicspt_demo- a path tracing program - quite complex - see its own READMEheat_demo- a heat diffusion example (precompiled Linux visualiser)gdb_test- shows how to use the GDB debugger with SpiNNaker. See thegdb-spindocument in thedocsdirectory for instructions.There is documentation for SARK,
ybug,gdb-spinand the Spin1 API in thedocsdirectory.SpiNNaker systems mostly communicate using UDP/IP with port numbers in the range 17890-17899. Specifically, 17892 is used for Tubotron and Tubogrid, 17893 is used by SpiNNaker (e.g., by
ybug) and 17894 is often used by visualisers. If you have a firewall blocking any of these ports, you may encounter problems and it's worth checking the firewall before blaming anything else!Similarly, you may only have one visualiser (such as Tubotron) on each port at any one time. So you may see a message to the effect that the port is in use if you try to start a visualiser when one is already running and using the same port.
Some visualisers (tubotron/tubogrid) use the Perl-Tk library which may not be installed by default on your machine. This can be installed as follows
sudo apt-get install perl-tk # Ubuntu, etc sudo yum install perl-Tk # Fedora, etc
Documentation
Owner
- Name: SpiNNaker - University of Manchester
- Login: SpiNNakerManchester
- Kind: organization
- Email: spinnakerusers@googlegroups.com
- Location: Manchester, UK
- Website: http://spinnakermanchester.github.io/
- Repositories: 78
- Profile: https://github.com/SpiNNakerManchester
Software for the SpiNNaker Million Core Neuromorphic Machine. Part of the Human Brain Project and EBRAINS
Citation (CITATION.cff)
# Copyright (c) 2017 The University of Manchester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cff-version: 1.2.0
message: If you use this software, please cite it as below.
preferred-citation:
type: article
doi: 10.3389/fnins.2019.00231
issn: 1662-453X
url: https://www.frontiersin.org/articles/10.3389/fnins.2019.00231
title: "SpiNNTools: The Execution Engine for the SpiNNaker Platform"
journal: Frontiers in Neuroscience
volume: 13
year: 2019
month: 3
abstract: SpiNNaker is a massively parallel distributed architecture primarily focused on real time simulation of spiking neural networks. The largest realization of the architecture consists of one million general purpose processors, making it the largest neuromorphic computing platform in the world at the present time. Utilizing these processors efficiently requires expert knowledge of the architecture to generate executable code and to harness the potential of the unique inter-processor communications infra-structure that lies at the heart of the SpiNNaker architecture. This work introduces a software suite called SpiNNTools that can map a computational problem described as a graph into the required set of executables, application data and routing information necessary for simulation on this novel machine. The SpiNNaker architecture is highly scalable, giving rise to unique challenges in mapping the problem to the machines resources, loading the generated files to the machine and subsequently retrieving the results of simulation. In this paper we describe these challenges in detail and the solutions implemented.
authors:
- given-names: Andrew
family-names: Rowley
affiliation: University Of Manchester
email: Andrew.Rowley@manchester.ac.uk
orcid: https://orcid.org/0000-0002-2646-8520
website: https://www.researchgate.net/profile/Andrew_Rowley2
- given-names: Christian Y.
family-names: Brenninkmeijer
affiliation: University Of Manchester
email: christian.brenninkmeijer@manchester.ac.uk
orcid: https://orcid.org/0000-0002-2937-7819
website: https://www.researchgate.net/profile/Christian_Brenninkmeijer
- given-names: Simon
family-names: Davidson
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0001-5385-442X
website: https://research.manchester.ac.uk/en/persons/simon.davidson
- given-names: Donal
family-names: Fellows
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0002-9091-5938
website: https://www.researchgate.net/profile/Donal-Fellows
- given-names: Andrew
family-names: Gait
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0001-9349-1096
website: https://personalpages.manchester.ac.uk/staff/andrew.gait/
- given-names: David R.
family-names: Lester
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0002-7267-291X
- given-names: Luis A.
family-names: Plana
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0002-6113-3929
website: https://research.manchester.ac.uk/en/persons/luis.plana
- given-names: Oliver
family-names: Rhodes
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0003-1728-2828
website: https://research.manchester.ac.uk/en/persons/oliver.rhodes
- given-names: Alan B.
family-names: Stokes
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0002-6110-1484
- given-names: Steve B.
family-names: Furber
affiliation: University Of Manchester
orcid: https://orcid.org/0000-0002-6524-3367
website: https://research.manchester.ac.uk/en/persons/steve.furber
title: Low level tools for using and debugging applications on SpiNNaker machines
authors:
- name: SpiNNaker Software Team
alias: For a list of contributors see https://github.com/SpiNNakerManchester/spinnaker_tools/graphs/contributors or for a combined list see https://spinnakermanchester.github.io/latest/LicenseAgreement.html#contributors
address: University of Manchester, Oxford Road
city: Manchester
country: GB
email: spinnakerusers@googlegroups.com
post-code: M13 9PL
website: https://apt.cs.manchester.ac.uk/projects/SpiNNaker/
url: https://spinnakermanchester.github.io/
contact:
- address: University of Manchester, Oxford Road
city: Manchester
country: GB
email: spinnakerusers@googlegroups.com
name: SpiNNaker Software Team
post-code: M13 9PL
license: Apache-2.0
repository: https://github.com/SpiNNakerManchester/spinnaker_tools
GitHub Events
Total
- Delete event: 4
- Issue comment event: 2
- Push event: 22
- Pull request event: 8
- Create event: 4
Last Year
- Delete event: 4
- Issue comment event: 2
- Push event: 22
- Pull request event: 8
- Create event: 4
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 29
- Total pull requests: 71
- Average time to close issues: 12 months
- Average time to close pull requests: about 2 months
- Total issue authors: 7
- Total pull request authors: 10
- Average comments per issue: 1.17
- Average comments per pull request: 2.0
- Merged pull requests: 58
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- lplana (20)
- rowleya (4)
- robert-hardwick (1)
- alan-stokes (1)
- mossblaser (1)
- ericnichols (1)
- AlexRast (1)
Pull Request Authors
- lplana (19)
- rowleya (17)
- dkfellows (14)
- mossblaser (9)
- dependabot[bot] (9)
- Christian-B (5)
- alan-stokes (5)
- sergiodavies (2)
- mundya (1)
- felix-schneider (1)
- Steve-Temple (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- ./support/actions/check-copyrights * composite
- ./support/actions/vera * composite
- actions/checkout v3 composite
- JamesIves/github-pages-deploy-action 3.7.1 composite
- actions/checkout v3 composite
- mattnotmitt/doxygen-action v1.1.0 composite