-
Notifications
You must be signed in to change notification settings - Fork 7
Install locally #125
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
Merged
Merged
Install locally #125
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,24 @@ | ||
| ifndef NEURAL_MODELLING_DIRS | ||
| $(error NEURAL_MODELLING_DIRS is not set. Please define NEURAL_MODELLING_DIRS (possibly by running "source setup" in the neural_modelling folder within the sPyNNaker source folder)) | ||
| endif | ||
| 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)))) | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Compute the absolute path to the directory containing this file. | ||
| # | ||
| EXTRA_MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
| # Work out the top-level project folder | ||
| MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
| EXTRA_MODELS_DIR := $(abspath $(dir $(MAKEFILE_PATH))/../../)/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure that APP_OUTPUT_DIR points to where you want the .aplx files to go. | ||
| # | ||
| APP_OUTPUT_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))../../python_models8/model_binaries/) | ||
| # This is where the building will happen | ||
| BUILD_DIR := $(EXTRA_MODELS_DIR)c_models/build/$(APP)/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure EXTRA_SRC_DIR points to the source directory where your unmodified | ||
| # files are found. | ||
| # | ||
| EXTRA_SRC_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))/../src/) | ||
| # This is where the output .aplx files will go | ||
| APP_OUTPUT_DIR := $(EXTRA_MODELS_DIR)python_models8/model_binaries/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Add EXTRA_SRC_DIR to the SOURCE_DIRS to ensure that it gets used correctly | ||
| SOURCE_DIRS += $(EXTRA_SRC_DIR) | ||
| CFLAGS += -I$(EXTRA_SRC_DIR) | ||
| # This is where the extra source files are located | ||
| EXTRA_SRC_DIR := $(EXTRA_MODELS_DIR)c_models/src | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure each neuron model has a unique build directory. | ||
| # | ||
| BUILD_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))/../build/$(APP))/ | ||
| # This location will be used to hold source files after log conversion | ||
| # which saves instruction space on the SpiNNaker machine | ||
| EXTRA_MODIFIED_DIR := $(EXTRA_MODELS_DIR)c_models/modified_src/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Import the main Makefile | ||
| include $(NEURAL_MODELLING_DIRS)/makefiles/neuron/neural_build.mk | ||
| # This simply maps the source directory to the modified source directory | ||
| SOURCE_DIRS += $(EXTRA_SRC_DIR):$(EXTRA_MODIFIED_DIR) | ||
|
|
||
| # Import the main neural build Makefile | ||
| include $(SPYNNAKER_INSTALL_DIR)/make/neural_build.mk | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,24 @@ | ||
| ifndef NEURAL_MODELLING_DIRS | ||
| $(error NEURAL_MODELLING_DIRS is not set. Please define NEURAL_MODELLING_DIRS (possibly by running "source setup" in the neural_modelling folder within the sPyNNaker source folder)) | ||
| endif | ||
| 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)))) | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Compute the absolute path to the directory containing this file. | ||
| # | ||
| EXTRA_MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
| # Work out the top-level project folder | ||
| MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
| EXTRA_MODELS_DIR := $(abspath $(dir $(MAKEFILE_PATH))/../../)/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure that APP_OUTPUT_DIR points to where you want the .aplx files to go. | ||
| # | ||
| APP_OUTPUT_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))../../python_models8/model_binaries/) | ||
| # This is where the building will happen | ||
| BUILD_DIR := $(EXTRA_MODELS_DIR)c_models/build/$(APP)/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure EXTRA_SRC_DIR points to the source directory where your unmodified | ||
| # files are found. | ||
| # | ||
| EXTRA_SRC_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))/../src/) | ||
| # This is where the output .aplx files will go | ||
| APP_OUTPUT_DIR := $(EXTRA_MODELS_DIR)python_models8/model_binaries/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Add EXTRA_SRC_DIR to the SOURCE_DIRS to ensure that it gets used correctly | ||
| SOURCE_DIRS += $(EXTRA_SRC_DIR) | ||
| CFLAGS += -I$(EXTRA_SRC_DIR) | ||
| # This is where the extra source files are located | ||
| EXTRA_SRC_DIR := $(EXTRA_MODELS_DIR)c_models/src | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure each neuron model has a unique build directory. | ||
| # | ||
| BUILD_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))/../build/$(APP))/ | ||
| # This location will be used to hold source files after log conversion | ||
| # which saves instruction space on the SpiNNaker machine | ||
| EXTRA_MODIFIED_DIR := $(EXTRA_MODELS_DIR)c_models/modified_src/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Import the main Makefile | ||
| include $(NEURAL_MODELLING_DIRS)/makefiles/neuron_only/neuron_build.mk | ||
| # This simply maps the source directory to the modified source directory | ||
| SOURCE_DIRS += $(EXTRA_SRC_DIR):$(EXTRA_MODIFIED_DIR) | ||
|
|
||
| # Import the main neural build Makefile | ||
| include $(SPYNNAKER_INSTALL_DIR)/make/neuron_only_build.mk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,24 @@ | ||
| ifndef NEURAL_MODELLING_DIRS | ||
| $(error NEURAL_MODELLING_DIRS is not set. Please define NEURAL_MODELLING_DIRS (possibly by running "source setup" in the neural_modelling folder within the sPyNNaker source folder)) | ||
| endif | ||
| 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)))) | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Compute the absolute path to the directory containing this file. | ||
| # | ||
| EXTRA_MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
| # Work out the top-level project folder | ||
| MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
| EXTRA_MODELS_DIR := $(abspath $(dir $(MAKEFILE_PATH))/../../)/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure that APP_OUTPUT_DIR points to where you want the .aplx files to go. | ||
| # | ||
| APP_OUTPUT_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))../../python_models8/model_binaries/) | ||
| # This is where the building will happen | ||
| BUILD_DIR := $(EXTRA_MODELS_DIR)c_models/build/$(APP)/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure EXTRA_SRC_DIR points to the source directory where your unmodified | ||
| # files are found. | ||
| # | ||
| EXTRA_SRC_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))/../src/) | ||
| # This is where the output .aplx files will go | ||
| APP_OUTPUT_DIR := $(EXTRA_MODELS_DIR)python_models8/model_binaries/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Add EXTRA_SRC_DIR to the SOURCE_DIRS to ensure that it gets used correctly | ||
| SOURCE_DIRS += $(EXTRA_SRC_DIR) | ||
| CFLAGS += -I$(EXTRA_SRC_DIR) | ||
| # This is where the extra source files are located | ||
| EXTRA_SRC_DIR := $(EXTRA_MODELS_DIR)c_models/src | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Make sure each neuron model has a unique build directory. | ||
| # | ||
| BUILD_DIR := $(abspath $(dir $(EXTRA_MAKEFILE_PATH))/../build/$(APP))/ | ||
| # This location will be used to hold source files after log conversion | ||
| # which saves instruction space on the SpiNNaker machine | ||
| EXTRA_MODIFIED_DIR := $(EXTRA_MODELS_DIR)c_models/modified_src/ | ||
|
|
||
| # ---------------------------------------------------------------------- | ||
| # Import the main Makefile | ||
| include $(NEURAL_MODELLING_DIRS)/makefiles/synapse_only/synapse_build.mk | ||
| # This simply maps the source directory to the modified source directory | ||
| SOURCE_DIRS += $(EXTRA_SRC_DIR):$(EXTRA_MODIFIED_DIR) | ||
|
|
||
| # Import the main neural build Makefile | ||
| include $(SPYNNAKER_INSTALL_DIR)/make/synapse_build.mk |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.