1 Star 0 Fork 1

flice/OpenBLAS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
GotoBLAS_06WeirdPerformance.txt 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
Weird Performance
1. If you see serious performance loss (extremely low performance),
probably you created too many threads or process. Basically GotoBLAS
assumes that available cores that you specify are exclusively for
BLAS computation. Even one small thread/process conflicts with BLAS
threads, performance will become worse.
The best solution is to reduce your number of threads or insert
some synchronization mechanism and suspend your threads until BLAS
operation is finished.
2. Simlar problem may happen under virtual machine. If supervisor
allocates different cores for each scheduling, BLAS performnace
will be bad. This is because BLAS also utilizes all cache,
unexpected re-schedule for different core may result of heavy
performance loss.
Anyway, if you see any weird performance loss, it means your code or
algorithm is not optimal.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/flice/OpenBLAS.git
git@gitee.com:flice/OpenBLAS.git
flice
OpenBLAS
OpenBLAS
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385