harvard-acc / ALADDIN

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

Running ALADIN for bb_gemm [ Crash ] #51

Open praneeth121 opened 1 year ago

praneeth121 commented 1 year ago

Hi, I am trying to run bb_gem benchmark using the following config file. pipelining,0 cycle_time,2 partition,cyclic,x,1024,4,1 partition,cyclic,y,256,4,1 partition,cyclic,z,1024,4,1

I am getting the following output of the aladdin. Can you please let me know where am I going wrong:

[ERROR]: At node 239, invalid array access: y: Attempting to access offset 256, but total size = 256

xyzsam commented 1 year ago

That shouldn't happen. Did you modify any of the code, such as by changing the sizes of the arrays?

Basically, what the error is saying is that you told Aladdin the array y has 256 elements of 4 bytes each, but you're trying to access an element beyond the bounds of the array.

xtfan commented 1 year ago

Hi, we also get the crash when running bb_gemm applications. Our config file is as follows: partition,block,y,4096,4,1 partition,block,z,4096,4,1 unrolling,bb_gemm,loopj,1 pipeline,loopj,1 cycle_time,5

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

Any suggestions on how to write a valid configuration file?