2 ms·
It will increase performance if you have sufficient amount of dense data on input. When that’s the case, especially if the numbers being crunched are 32-bit fl
by Const-me 6y ago
It will increase performance if you have sufficient amount of dense data on input.
When that’s the case, especially if the numbers being crunched are 32-bit floats, there’s not much point of doing it on CPU at all, GPGPUs are way more efficient for such tasks.
However, imagine sparse matrix * dense vector multiplication. If you rarely have more than 4 consecutive non-zero elements in rows of the input matrix, and large gaps between non-zero elements, moving from SSE to AVX or AVX512 will decrease the performance, you’ll be just wasting electricity multiplying by zeros.