neoml-lib / neoml

Machine learning framework for both deep learning and traditional algorithms
https://www.abbyy.com/neoml/
Apache License 2.0
764 stars 126 forks source link

[NeoMathEngineAvx] MatrixMultiplier zero div fix #1089

Closed favorart closed 1 month ago

favorart commented 1 month ago

Fix div zero Ceildiv(n, nBlock); when nBlock = 0, n = 2 where nBlock = (cpuInfo.L2CacheSize * 90 / 100 - cpuInfo.L1CacheSize) / (kBlock * sizeof(float)); If 10% L2Cache == 100% L1Cache