Skip to content

Commit

Permalink
Fix default sync domain not splitting processes according to the Node (
Browse files Browse the repository at this point in the history
…#286)

* Fixed the issue with the sync domain of hierarichal process

* Changed the implementation of splitting of sync domain
  • Loading branch information
ysingh7 authored Jul 29, 2022
1 parent cfae5c9 commit 1700dec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lava/magma/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ def _create_sync_domains(
# of custom sync domain
if p not in proc_to_domain_map:
default_sd_name = proto.__name__ + "_SyncDomain"
if not issubclass(pm, AbstractPyProcessModel):
default_sd_name = proto.__name__ + "_Nc_C" + "_SyncDomain"
if default_sd_name in sync_domains:
# Default sync domain for current protocol already exists
sd = sync_domains[default_sd_name]
Expand Down

0 comments on commit 1700dec

Please sign in to comment.