Skip to content

Commit

Permalink
Fixed the explicit ordering of subcompilers in compilation stack: C-f…
Browse files Browse the repository at this point in the history
…irst-Nc-second heuristic (#408)

Signed-off-by: Risbud, Sumedh <sumedh.risbud@intel.com>

Signed-off-by: Risbud, Sumedh <sumedh.risbud@intel.com>
  • Loading branch information
srrisbud committed Oct 11, 2022
1 parent 41f56f0 commit 482bb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lava/magma/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ def _create_subcompilers(
# ...and add it to the list.
subcompilers.append(compiler)
# Remember the index for C and Nc subcompilers:
if isinstance(compiler, type(CProcCompiler)):
if isinstance(compiler, CProcCompiler):
c_idx.append(idx)
if isinstance(compiler, type(NcProcCompiler)):
if isinstance(compiler, NcProcCompiler):
nc_idx.append(idx)

# Implement the heuristic "C-first Nc-second" whenever C and Nc
Expand Down

0 comments on commit 482bb0a

Please sign in to comment.