From 4f3ccd3ca4a8b90e86dcacc4b4a738f6759820b5 Mon Sep 17 00:00:00 2001 From: Yashwardhan Singh Date: Fri, 29 Jul 2022 11:41:11 -0700 Subject: [PATCH] Fix default sync domain not splitting processes according to the Node (#286) * Fixed the issue with the sync domain of hierarichal process * Changed the implementation of splitting of sync domain --- src/lava/magma/compiler/compiler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lava/magma/compiler/compiler.py b/src/lava/magma/compiler/compiler.py index a0add53de..a35934850 100644 --- a/src/lava/magma/compiler/compiler.py +++ b/src/lava/magma/compiler/compiler.py @@ -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]