Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparse metamapper #117

Merged
merged 20 commits into from
Feb 12, 2024
Merged

Sparse metamapper #117

merged 20 commits into from
Feb 12, 2024

Conversation

bobcheng15
Copy link
Collaborator

  1. Updated the graphs that contains the smax operation (all relu graphs) to update the op name from max to smax, and update the argument they use to pass the constant.
  2. Update the mat_elemadd_leakyrelu_exp graph to use a single exp node to represent the exponential operation, which will rely on metamapper to perform mapping.
  3. Updated parse_dot.py to add code that generates the coreir specification for compute nodes.
  4. Updated parse_dot.py to call metamapper/scripts/map_app.py to perform mapping on the generated coreir specification.
  5. Updated parse_dot.py to add support for parsing the complex op mapping generated by the metamapper.
  6. Updated parse_dot.py to fix the issue where it is trying to remap the already rewritten arrayvals when the second time the rewrite_arrays function is invoked.
  7. Updated compute_node.py to remove all the hard-coded logic that generates the opcode for the alu. Also added code to generate the FIFO enable configuration register value base on the ports picked by metamapper
  8. Updated compute_node.py to add a function to parse the mapped coreir specification for the opcode and the input ports a compute_node will use.
  9. Updated connection logic to compute node in intersect_node.py, reduce_node.py, compute_node.py, and read_scanner_node.py to get rid of the hard-coded connection port name. It now uses the information generated by metamapper instead.

…logic, and dedicated reduce primitive mapping logic
…per generates, clean up printing statement in read scanner node
…o enabled alu mapping for adder in vector_reduce
… to collat dir, update compute node to parse json file in collat dir
…apping operation with constant using metamapper
…op alus, also update the connection logic to allow destination port specification by metamapper
…r all apps in the regression, further cleanup WIP
Copy link
Collaborator

@kalhankoul96 kalhankoul96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kalhankoul96 kalhankoul96 merged commit ce5ba84 into mapping_to_cgra Feb 12, 2024
1 check passed
@kalhankoul96 kalhankoul96 deleted the sparse_metamapper branch February 12, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants