GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
generateModules.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Standard C++ includes
4 #include <string>
5 #include <vector>
6 
7 // GeNN includes
8 #include "gennExport.h"
9 
10 // GeNN code generator includes
11 #include "backendBase.h"
12 
13 // Forward declarations
14 class ModelSpecInternal;
15 
16 namespace filesystem
17 {
18  class path;
19 }
20 
21 //--------------------------------------------------------------------------
22 // CodeGenerator
23 //--------------------------------------------------------------------------
24 namespace CodeGenerator
25 {
26 GENN_EXPORT std::pair<std::vector<std::string>, MemAlloc> generateAll(const ModelSpecInternal &model, const BackendBase &backend,
27  const filesystem::path &sharePath, const filesystem::path &outputPath,
28  bool forceRebuild = false);
29 
30 GENN_EXPORT void generateNeuronUpdate(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged,
31  const BackendBase &backend, const std::string &suffix = "");
32 
33 GENN_EXPORT void generateCustomUpdate(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged,
34  const BackendBase &backend, const std::string &suffix = "");
35 
36 GENN_EXPORT void generateSynapseUpdate(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged,
37  const BackendBase &backend, const std::string &suffix = "");
38 
39 GENN_EXPORT void generateInit(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged,
40  const BackendBase &backend, const std::string &suffix = "");
41 }
GENN_EXPORT void generateSynapseUpdate(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged, const BackendBase &backend, const std::string &suffix="")
Definition: generateModules.cc:236
#define GENN_EXPORT
Definition: gennExport.h:13
GENN_EXPORT void generateInit(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged, const BackendBase &backend, const std::string &suffix="")
Definition: generateModules.cc:268
Helper class for generating code - automatically inserts brackets, indents etc.
Definition: backendBase.h:30
GENN_EXPORT void generateNeuronUpdate(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged, const BackendBase &backend, const std::string &suffix="")
Definition: generateModules.cc:177
GENN_EXPORT void generateCustomUpdate(const filesystem::path &outputPath, const ModelSpecMerged &modelMerged, const BackendBase &backend, const std::string &suffix="")
Definition: generateModules.cc:206
Definition: modelSpecInternal.h:10
Definition: generateModules.h:16
GENN_EXPORT std::pair< std::vector< std::string >, MemAlloc > generateAll(const ModelSpecInternal &model, const BackendBase &backend, const filesystem::path &sharePath, const filesystem::path &outputPath, bool forceRebuild=false)
Definition: generateModules.cc:93