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

cpu bandwidth测试结果无法对齐 #33

Open
Zdahap opened this issue May 17, 2024 · 0 comments
Open

cpu bandwidth测试结果无法对齐 #33

Zdahap opened this issue May 17, 2024 · 0 comments

Comments

@Zdahap
Copy link

Zdahap commented May 17, 2024

如果按照原先方式:
std::unique_ptr<uint8_t[]> src{new uint8_t[NR_BYTES]{}};
std::unique_ptr<uint8_t[]> dst{new uint8_t[NR_BYTES]{}};
此时得到的带宽偏低,在8295上可能才14 GBps
如果改为:
uint8_t* src = (uint8_t*)malloc(NR_BYTES * sizeof(uint8_t));
uint8_t* dst = (uint8_t*)malloc(NR_BYTES * sizeof(uint8_t));
得到的带宽接近36 GBps。
测试设备 SA8295大核。

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