From 8fb7455250ea1ff7eb5a3f8d97413421724e85c0 Mon Sep 17 00:00:00 2001 From: Michael Oduoza Date: Fri, 17 Jan 2025 15:03:58 -0800 Subject: [PATCH] Rename sparse mode to rv mode --- sam/onyx/hw_nodes/compute_node.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sam/onyx/hw_nodes/compute_node.py b/sam/onyx/hw_nodes/compute_node.py index f801175c..fc76c0d1 100644 --- a/sam/onyx/hw_nodes/compute_node.py +++ b/sam/onyx/hw_nodes/compute_node.py @@ -214,22 +214,22 @@ def configure(self, attributes): comment = attributes['comment'].strip('"') op_code = 0 # configuring via sam, it is a sparse app - use_dense = False + bypass_rv = False # mapping to pe only, configuring only the pe, ignore the reduce pe_only = True # data I/O should interface with other primitive outside of the cluster pe_in_external = 1 # according to the mapped input ports generate input port config - num_sparse_inputs = list("000") + active_inputs = list("000") for port in self.mapped_input_ports: - num_sparse_inputs[2 - int(port)] = '1' - num_sparse_inputs = int("".join(num_sparse_inputs), 2) + active_inputs[2 - int(port)] = '1' + active_inputs = int("".join(active_inputs), 2) cfg_kwargs = { 'op': self.opcode, - 'use_dense': use_dense, + 'bypass_rv': bypass_rv, 'pe_only': pe_only, 'pe_in_external': pe_in_external, - 'num_sparse_inputs': num_sparse_inputs + 'active_inputs': active_inputs } - return (op_code, use_dense, pe_only, pe_in_external, num_sparse_inputs), cfg_kwargs + return (op_code, bypass_rv, pe_only, pe_in_external, active_inputs), cfg_kwargs