Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_nnvm_testbench.sh got wrong memory alignment #1

Open
cwt opened this issue Jul 22, 2024 · 2 comments
Open

run_nnvm_testbench.sh got wrong memory alignment #1

cwt opened this issue Jul 22, 2024 · 2 comments

Comments

@cwt
Copy link

cwt commented Jul 22, 2024

I repackage this as an Arch pakage.
I got this error then I run run_nnvm_testbench.sh.

[root@LPi4A test]# ./run_nnvm_testbench.sh 
***************************************************************
Copyright (c) Imagination Technologies Ltd. All Rights Reserved
***************************************************************
Version: REL_3.8-cl6140200_1.9
INFO: NNA clock:792000 [kHz]
INFO: Heap :ocm (0x18)
INFO: Heap :anonymous (0x2)
INFO: Heap :dmabuf (0x2)
INFO: Heap :unified (0x5)
WARNING: Mapping to the on chip ram failed (384 > 256), continuing...
FATAL: Importing 602112 bytes of CPU memory has failed (wrong memory alignment)
SUCCESS
@cwt
Copy link
Author

cwt commented Jul 22, 2024

FYI: The Arch package I mention is here: https://github.com/cwt-lpi4a/th1520-npu

@cwt
Copy link
Author

cwt commented Jul 23, 2024

FYI: This is the error from dmesg:

[  115.546584] ax3xxx-nna fffc800000.vha: vha_map_to_onchip: moving a page to on chip ram failed!
[  115.566224] _img_mem_get_user_pages wrong alignment of 0x3fe560b010 address!
[  115.573347] img_mem_import:697 getting user pages failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant