Skip to content

Commit

Permalink
Made PyGeNN always default to including model name in dll
Browse files Browse the repository at this point in the history
  • Loading branch information
neworderofjamie committed Nov 9, 2021
1 parent 331172a commit 594f6ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pygenn/genn_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,10 @@ def build(self, path_to_model="./", force_rebuild=False):
for k, v in iteritems(self._preferences):
if hasattr(preferences, k):
setattr(preferences, k, v)


# When using PyGeNN, always include model name in DLL
preferences.includeModelNameInDLL = True

# Create backend
backend = self._backend_module.create_backend(self._model, output_path,
self.backend_log_level,
Expand Down Expand Up @@ -600,7 +603,7 @@ def load(self, path_to_model="./", num_recording_timesteps=None):
raise Exception("GeNN model already loaded")
self._path_to_model = path_to_model

self._slm.open(self._path_to_model, self.model_name)
self._slm.open(self._path_to_model, self.model_name, True)

self._slm.allocate_mem()

Expand Down

0 comments on commit 594f6ab

Please sign in to comment.