Hi Sameer,
A couple of comments.
1) The accuracy of GEMM and most BLAS (and BLAS-like) routines is
typically something that developers do not consider. This is because
worst case analyses (bounds) exist, and most implementations trivially
satisfy them. (Exceptions exist: TRSM, Strassen-like schemes, ...)
2) As Robert points out, there is a whole field of study concerned with
the analysis of algorithms and the development of such bounds: numerical
linear algebra. The reference book is Nick Higham's "Accuracy and
Stability of Numerical Algorithms". Incidentally, Robert and I also
wrote on the subject; ours is maybe a bit more gentle introduction for
the uninitiated.
[1]
3) Despite the number and the breath of different BLAS routines, most
(if not all) analyses build on results for the dot product. This is by
far the most important building block for accuracy studies.
Surprisingly, "new" results keep coming out, depending on the order of
the summands, the precision of the data and of the accumulation, and so on. These days (bit-wise) reproducibility is also a thing; hence more work
on the topic.
Cheers, Paolo
--
Prof. Paolo Bientinesi, Ph.D.
Director, HPC2N