David-Durst / aetherling

Create auto-scheduled data-parallel pipelines in hardware with user-friendly Python
MIT License
12 stars 1 forks source link

Native Linebuffer Fails With _Mux2 Name Issue #12

Closed David-Durst closed 6 years ago

David-Durst commented 6 years ago

Running pytest -s tests/test_native_line_buffer.py to run the test at https://github.com/David-Durst/aetherling/blob/708d93530f47b265cbca657f84f13627ec386a4c/tests/test_native_line_buffer.py#L25 with the linebuffer from https://github.com/David-Durst/aetherling/blob/708d93530f47b265cbca657f84f13627ec386a4c/aetherling/modules/native_linebuffer.py#L11 fails with the below issue:

(aetherling) durst@DN0a22a629:~/dev/W17-8/aetherling$ pytest -s tests/test_native_line_buffer.py
================================================================================= test session starts =================================================================================
platform darwin -- Python 3.6.4, pytest-3.4.2, py-1.5.2, pluggy-0.6.0
rootdir: /Users/durst/dev/W17-8/aetherling, inifile:
collected 2 items

tests/test_native_line_buffer.py FIn Run Generators
Done running generators
In Run Generators
Done running generators
ERROR: _Mux2 already exists in global

0   libcoreir.dylib                     0x000000010910b211 _ZN6CoreIR9Namespace13newModuleDeclENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_4TypeENS1_3mapIS7_PNS_9ValueTypeENS1_4lessIS7_EENS5_INS1_4pairIKS7_SC_EEEEEE + 145
1   libcoreir-c.dylib                   0x0000000108e4ed18 CORENewModule + 2296
2   libffi.6.dylib                      0x0000000106ae8884 ffi_call_unix64 + 76
3   ???                                 0x00007ffee9ea2190 0x0 + 140732822856080
David-Durst commented 6 years ago

@phanrahan thoughts? Have you made multiple SIPO before in the same module?

rdaly525 commented 6 years ago

To be clear, it seems that Magma is trying to create two modules/generators with the same name of "_Mux2" in CoreIR.

David-Durst commented 6 years ago

Addressing this in another place - https://github.com/phanrahan/magma/issues/236