[patch,libgfortran] PR51119 - MATMUL slow for large matrices
Thomas Koenig
tkoenig@netcologne.de
Mon Nov 14 07:04:00 GMT 2016
Hi Jerry,
I think this
+ /* Parameter adjustments */
+ c_dim1 = m;
+ c_offset = 1 + c_dim1;
should be
+ /* Parameter adjustments */
+ c_dim1 = rystride;
+ c_offset = 1 + c_dim1;
Regarding options for matmul: It is possible to add the
options to the lines in Makefile.in
# Turn on vectorization and loop unrolling for matmul.
$(patsubst %.c,%.lo,$(notdir $(i_matmul_c))): AM_CFLAGS +=
-ftree-vectorize -funroll-loops
This is a great step forward. I think we can close most matmul-related
PRs once this patch has been applied.
Regards
Thomas
More information about the Gcc-patches
mailing list