Closed favorart closed 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
Ceildiv(n, nBlock);
nBlock = 0, n = 2
nBlock = (cpuInfo.L2CacheSize * 90 / 100 - cpuInfo.L1CacheSize) / (kBlock * sizeof(float));
Fix div zero
Ceildiv(n, nBlock);
whennBlock = 0, n = 2
wherenBlock = (cpuInfo.L2CacheSize * 90 / 100 - cpuInfo.L1CacheSize) / (kBlock * sizeof(float));
If 10% L2Cache == 100% L1Cache