Skip to content
Snippets Groups Projects
Commit 55bbb706 authored by David Hendriks's avatar David Hendriks
Browse files

Updated code to handle with pycapsules. Assignment of memory is only done...

Updated code to handle with pycapsules. Assignment of memory is only done within the multiprocessing process/thread, otherwise we cant  use multiprocessing
parent 4e6c1662
No related branches found
No related tags found
No related merge requests found
...@@ -848,7 +848,6 @@ class Population: ...@@ -848,7 +848,6 @@ class Population:
""" """
binary_cmdline_string = self._return_argline(full_system_dict) binary_cmdline_string = self._return_argline(full_system_dict)
print(binary_cmdline_string)
persistent_data_memaddr = -1 persistent_data_memaddr = -1
if self.bse_options.get("ensemble", 0) == 1: if self.bse_options.get("ensemble", 0) == 1:
...@@ -1143,8 +1142,7 @@ class Population: ...@@ -1143,8 +1142,7 @@ class Population:
# ### Custom logging code: # ### Custom logging code:
self._set_custom_logging() self._set_custom_logging()
### Load store: Make sure this actually works. # ### Load store: Make sure this actually works.
self.grid_options["_store_memaddr"] = _binary_c_bindings.return_store_memaddr()
### ensemble: make some checks for this ### ensemble: make some checks for this
## check the settings and set all the warnings. ## check the settings and set all the warnings.
...@@ -1290,9 +1288,6 @@ class Population: ...@@ -1290,9 +1288,6 @@ class Population:
# Unload functions # Unload functions
# TODO: unload functions # TODO: unload functions
# Unload store
_binary_c_bindings.free_store_memaddr(self.grid_options["_store_memaddr"])
# Unload/free custom_logging_code # Unload/free custom_logging_code
# TODO: cleanup custom logging code. # TODO: cleanup custom logging code.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment