cpu bandwidth测试结果无法对齐
- Dominant language
- C++
- Stars
- 256
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
如果按照原先方式:
std::unique_ptr src{new uint8_t[NR_BYTES]{}};
std::unique_ptr 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大核。
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no file or test. Reproduce the CPU bandwidth benchmark on the SA8295 using both std::unique_ptr with new[] and malloc, then inspect how allocation and initialization affect the measurements. Done means the discrepancy has a documented cause and the benchmark results are made consistent or the limitation is clearly recorded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100