Difference in assembly code generated (gfortran vs ifort) (optimization flags missing?)

Thomas Koenig tkoenig@netcologne.de
Thu Apr 12 20:10:00 GMT 2018


Steve wrote:

> It would also be interesting to see the result of replacing
> the loops with
> 
> 
>     res = matmul(mat, vec)
> 
> as tkoenig (and jerryd?) works on optimizing matmul.

For a 4*4 matrix and a 4 vector, with optimization, the code
will be inlined to equivalent DO loops. It should result in the
same speed as the explicit DO loops.

Regards

	Thomas



More information about the Fortran mailing list