gem5-aladdin icon indicating copy to clipboard operation
gem5-aladdin copied to clipboard

[err][test] Get error DMA and ACP accessing the wrong memory when run the test_loop_sampling with the default config

Open galeselee opened this issue 1 year ago • 1 comments

Hi, devs! I encounter some problems(which is similar to(https://github.com/harvard-acc/gem5-aladdin/issues/35. The message looks like an error not a waning) when i use gem5-aladdin with test_loop_sampling test

Error

root@e426682e09dc:/workspace/gem5-aladdin/src/aladdin/integration-test/with-cpu/test_loop_sampling# sh run.sh 
warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (4096 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: x86 cpuid family 0x0000: unimplemented function 2
warn: x86 cpuid family 0x0000: unimplemented function 2
warn: x86 cpuid family 0x0000: unimplemented function 2
warn: x86 cpuid family 0x0000: unimplemented function 2
info: Received mapping for array inputs_host at vaddr 6d0840 of length 128.
info: Received mapping for array results_host at vaddr 6d0920 of length 128.
[WARNING]: Overlapping array declarations found!
  inputs_acc: 0x1259a60 - 0x1259ae0
  results_acc: 0x1259b40 - 0x1259bc0
[WARNING]: Overlapping array declarations found!
  inputs_host: 0x12598a0 - 0x12598a0
  results_acc: 0x1259b40 - 0x1259bc0
[WARNING]: Overlapping array declarations found!
  inputs_host: 0x12598a0 - 0x12598a0
  inputs_acc: 0x1259a60 - 0x1259ae0
[WARNING]: Overlapping array declarations found!
  inputs_host: 0x12598a0 - 0x12598a0
  results_host: 0x1259980 - 0x1259a00
[WARNING]: Overlapping array declarations found!
  results_host: 0x1259980 - 0x1259a00
  results_acc: 0x1259b40 - 0x1259bc0
[WARNING]: Overlapping array declarations found!
  results_host: 0x1259980 - 0x1259a00
  inputs_acc: 0x1259a60 - 0x1259ae0
[WARNING]: Overlapping array declarations found!
  results_host: 0x1259980 - 0x1259a00
  inputs_host: 0x12598a0 - 0x12598a0
Overlapping array address ranges can lead to incorrect behavior, such as DMA nodes trying to access the wrong arrays, ACP accessing the wrong memory, etc. Please check your Aladdin configuration file and the mapArrayToAccelerator() calls to verify that they are correct.
Global loop pipelining is not ON.
 Current power model supports trig functions running at 10 ns. 
 Cycle time: 2 is not supported yet. Use 10ns power model instead.

How to reproduce

1. get docker from docker pub
2. docker run image
3. python2.7 `which scons` build/X86/gem5.opt
4. cd /workspace/gem5-aladdin/src/aladdin/integration-test/with-cpu/test_loop_sampling
5. sh run.sh

galeselee avatar Mar 20 '23 17:03 galeselee

Don't worry about it. The overlap detection logic has been broken for a long time but we just never got around to fixing it...

xyzsam avatar Mar 24 '23 03:03 xyzsam