harvard-acc / ALADDIN

A pre-RTL, power-performance model for fixed-function accelerators
Other
161 stars 54 forks source link

A problem about running aladdin #29

Closed lhanzhang123 closed 4 years ago

lhanzhang123 commented 4 years ago

i'm trying to run my code on Docker , i met a problem when i execute $ALADDIN_HOME/common/aladdin mac ../dynamic_trace.gz config_example

cmd show : aladdin: ScratchpadDatapath.cpp:239: virtual void ScratchpadDatapath::stepExecutingQueue(): Assertion `partition.memory_type != dma && "Host memory accesses are not supported by standalone Aladdin!"' failed.

i have tried to trace the source code , but it's too difficult for me .

xyzsam commented 4 years ago

You need to make sure that every array you access in Aladdin is declared in your config file. Standalone Aladdin does not support host memory accesses (e.g. over DMA or cache).

We have Makefiles in aladdin/MachSuite which implement the entire tracing flow. You can take those and adapt them for your use.

lhanzhang123 commented 4 years ago

thank you ! i will try agian