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
…lava-nc#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 55b8eb8 commit 4f3ccd3
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
@@ -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]

0 comments on commit 4f3ccd3

Please sign in to comment.