Skip to content
Merged

Clean #127

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions .github/workflows/c_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,35 +65,22 @@ jobs:
SPINN_COMMON_INSTALL_DIR: ${{ github.workspace }}/spinn_common_install
FEC_INSTALL_DIR: ${{ github.workspace }}/fec_install
SPYNNAKER_INSTALL_DIR: ${{ github.workspace }}/spynnaker_install
C_LOGS_DICT: ${{ github.workspace }}/python_models8/model_binaries/logs.sqlite3
CFLAGS: -fdiagnostics-color=always
run: |
make -C spinnaker_tools install
make -C spinn_common install
make -C SpiNNFrontEndCommon/c_common
make -C sPyNNaker/neural_modelling
make -C sPyNNaker/neural_modelling install
make -C c_models

- name: Build SpiNNaker C code globally
env:
SPINN_DIRS: ${{ github.workspace }}/spinn_dirs
C_LOGS_DICT: ${{ github.workspace }}/python_models8/model_binaries/logs.sqlite3
CFLAGS: -fdiagnostics-color=always
run: |
make -C spinnaker_tools install
make -C spinn_common install
make -C SpiNNFrontEndCommon/c_common
make -C sPyNNaker/neural_modelling
make -C SpiNNFrontEndCommon/c_common install
make -C sPyNNaker/neural_modelling install
make -C c_models

- name: Build C code in DEBUG mode
run: make clean; make SPYNNAKER_DEBUG=DEBUG
working-directory: c_models
env:
SPINN_DIRS: ${{ github.workspace }}/spinn_dirs
C_LOGS_DICT: ${{ github.workspace }}/python_models8/model_binaries/logs.sqlite3
SPINN_INSTALL_DIR: ${{ github.workspace }}/spinnaker_tools_install
SPINN_COMMON_INSTALL_DIR: ${{ github.workspace }}/spinn_common_install
FEC_INSTALL_DIR: ${{ github.workspace }}/fec_install
SPYNNAKER_INSTALL_DIR: ${{ github.workspace }}/spynnaker_install
CFLAGS: -fdiagnostics-color=always

# To be added: Documentation building
Expand Down
7 changes: 7 additions & 0 deletions c_models/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CURRENT_DIR := $(abspath $(dir $(MAKEFILE_PATH)))
APP_OUTPUT_DIR := $(CURRENT_DIR)/../python_models8/model_binaries/

DIRS = makefiles

all: $(DIRS)
for d in $(DIRS); do $(MAKE) -C $$d || exit $$?; done

clean: $(DIRS)
$(RM) $(APP_OUTPUT_DIR)logs*.sqlite3
$(RM) $(APP_OUTPUT_DIR)*.aplx
$(RM) -r $(CURRENT_DIR)/modified_src
for d in $(DIRS); do $(MAKE) -C $$d clean || exit $$?; done
6 changes: 5 additions & 1 deletion c_models/makefiles/extra.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SPYNNAKER_INSTALL_DIR := $(strip $(if $(SPYNNAKER_INSTALL_DIR), $(SPYNNAKER_INSTALL_DIR), $(if $(SPINN_DIRS), $(SPINN_DIRS)/spynnaker_install, $(error SPYNNAKER_INSTALL_DIR or SPINN_DIRS is not set. Please define SPYNNAKER_INSTALL_DIR or SPINN_DIRS))))
CUR_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
SPYNNAKER_INSTALL_DIR := $(strip $(if $(SPYNNAKER_INSTALL_DIR), $(SPYNNAKER_INSTALL_DIR), $(abspath $(CUR_DIR)/../../../sPyNNaker/neural_modelling)))

# Work out the top-level project folder
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
Expand All @@ -9,6 +10,9 @@ BUILD_DIR := $(EXTRA_MODELS_DIR)c_models/build/$(APP)/

# This is where the output .aplx files will go
APP_OUTPUT_DIR := $(EXTRA_MODELS_DIR)python_models8/model_binaries/
# key for the database in this APP_OUTPUT_DIR
# If you change APP_OUTPUT_DIR please use a lower case letter
DATABASE_KEY = N

# This is where the extra source files are located
EXTRA_SRC_DIR := $(EXTRA_MODELS_DIR)c_models/src
Expand Down
6 changes: 5 additions & 1 deletion c_models/makefiles/extra_neuron.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SPYNNAKER_INSTALL_DIR := $(strip $(if $(SPYNNAKER_INSTALL_DIR), $(SPYNNAKER_INSTALL_DIR), $(if $(SPINN_DIRS), $(SPINN_DIRS)/spynnaker_install, $(error SPYNNAKER_INSTALL_DIR or SPINN_DIRS is not set. Please define SPYNNAKER_INSTALL_DIR or SPINN_DIRS))))
CUR_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
SPYNNAKER_INSTALL_DIR := $(strip $(if $(SPYNNAKER_INSTALL_DIR), $(SPYNNAKER_INSTALL_DIR), $(abspath $(CUR_DIR)/../../../sPyNNaker/neural_modelling)))

# Work out the top-level project folder
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
Expand All @@ -9,6 +10,9 @@ BUILD_DIR := $(EXTRA_MODELS_DIR)c_models/build/$(APP)/

# This is where the output .aplx files will go
APP_OUTPUT_DIR := $(EXTRA_MODELS_DIR)python_models8/model_binaries/
# key for the database in this APP_OUTPUT_DIR
# If you change APP_OUTPUT_DIR please use a lower case letter
DATABASE_KEY = N

# This is where the extra source files are located
EXTRA_SRC_DIR := $(EXTRA_MODELS_DIR)c_models/src
Expand Down
6 changes: 5 additions & 1 deletion c_models/makefiles/extra_synapse.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SPYNNAKER_INSTALL_DIR := $(strip $(if $(SPYNNAKER_INSTALL_DIR), $(SPYNNAKER_INSTALL_DIR), $(if $(SPINN_DIRS), $(SPINN_DIRS)/spynnaker_install, $(error SPYNNAKER_INSTALL_DIR or SPINN_DIRS is not set. Please define SPYNNAKER_INSTALL_DIR or SPINN_DIRS))))
CUR_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
SPYNNAKER_INSTALL_DIR := $(strip $(if $(SPYNNAKER_INSTALL_DIR), $(SPYNNAKER_INSTALL_DIR), $(abspath $(CUR_DIR)/../../../sPyNNaker/neural_modelling)))

# Work out the top-level project folder
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
Expand All @@ -9,6 +10,9 @@ BUILD_DIR := $(EXTRA_MODELS_DIR)c_models/build/$(APP)/

# This is where the output .aplx files will go
APP_OUTPUT_DIR := $(EXTRA_MODELS_DIR)python_models8/model_binaries/
# key for the database in this APP_OUTPUT_DIR
# If you change APP_OUTPUT_DIR please use a lower case letter
DATABASE_KEY = N

# This is where the extra source files are located
EXTRA_SRC_DIR := $(EXTRA_MODELS_DIR)c_models/src
Expand Down
2 changes: 2 additions & 0 deletions python_models8/model_binaries/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.aplx
logs*.sqlite3
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ include =
[options.package_data]
* =
*.aplx
*.dict
logs*.sqlite3


[options.extras_require]
Expand Down
Loading