David-Durst / aetherling

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

Possible Aetherling/CoreIR Memory Leak #19

Open David-Durst opened 5 years ago

David-Durst commented 5 years ago

My travis build fails because CoreIR's json to verilog compiler causes the VM to run out of memory on https://github.com/David-Durst/aetherling/blob/master/tests/haskell/convolution_32x32Im_2x2Win_1px_in_per_clk.py.

This doesn't seem like a large file.

Need to investigate why it's taking so much RAM.

rdaly525 commented 5 years ago

This doesn't sound good... Definitely possible there are memory leaks with regards to the python api. Or possibly internal coreir memory leak bugs.

Could you do a test and just serialize it to json first, then in a separate process generate the verilog for the json?

coreir -i circuit.json -o circuit.v