PolyArch / gem-forge-framework

BSD 2-Clause "Simplified" License
21 stars 9 forks source link

panic: More than 24 cache blocks for one stream element #3

Closed K16DIABLO closed 2 years ago

K16DIABLO commented 2 years ago

Hello,

I'm still running simulation on your framework, but I faced an error message: panic More than 24 cache blocks for one stream element, address (xxxxx) size 1536.

Why this happens (= Why dim_vector cannot be higher than 384?) and how I can fix it? Below is the code:

const uint64_t dim_vector = 385;
for (uint64_t i = 0; i < 10; i++) {
  for (uint64_t j = 0; j < dim_vector; j++) {
    C[idx[i] + j] = A[idx[i] + j] + B[idx[i] + j];
  }
}

Thank you.

seanzw commented 2 years ago

Can you check the generated LLVM IR and make sure that the inner loop is not unrolled? So far we can't handle stream with element size too large.

K16DIABLO commented 2 years ago

Thanks for your commment!