ABSTRACT
This paper intends to show the impact of compiler optimization flags and the variable’s precision on direct methods to solve linear systems. The chosen six methods are simple direct methods, so our work could be a study for new researchers in this field. The methods are LU Decomposition, LDU Decomposition, Gaussian Elimination, Gauss-Jordan Elimination, Cholesky Decomposition, and QR Decomposition using the Gram-Schmidt orthogonalization process. Our study showed a huge difference in time between single-and double-precision in all methods, but the error encountered in the single-precision was not so high. Also, the best flags to these methods were the ‘-O3’ and the ‘-Ofast’ ones.
Keywords:
linear systems; compiler flags; optimization; variable precision