Skip to content

Commit

Permalink
llvm/execution: Use correct type to print scheduler conditions struct…
Browse files Browse the repository at this point in the history
…ure stats

Add 'stat' to the test of debugging flags.

Fixes: fd5a419 ("llvm/execution: Store binary buffer of scheduler structures locally")
Signed-off-by: Jan Vesely <[email protected]>
  • Loading branch information
jvesely committed Feb 28, 2021
1 parent d513c55 commit bc80aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion psyneulink/core/llvm/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def _conditions(self):
self.__conds = cond_type(*cond_initializer)
if "stat" in self._debug_env:
print("Instantiated condition struct ( size:" ,
_pretty_size(ctypes.sizeof(struct_ty)), ")",
_pretty_size(ctypes.sizeof(cond_type)), ")",
"for", self._composition.name)

return self.__conds
Expand Down
2 changes: 1 addition & 1 deletion tests/llvm/test_debug_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from psyneulink.core.components.mechanisms.processing.transfermechanism import TransferMechanism
from psyneulink.core.compositions.composition import Composition

debug_options=["const_input=[[[7]]]", "const_input", "const_data", "const_params", "const_data", "const_state"]
debug_options=["const_input=[[[7]]]", "const_input", "const_data", "const_params", "const_data", "const_state", "stat"]
options_combinations = (";".join(("debug_info", *c)) for i in range(len(debug_options) + 1) for c in combinations(debug_options, i))

@pytest.mark.composition
Expand Down

0 comments on commit bc80aaf

Please sign in to comment.