Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use an intermediate variable to compute the sum and access c[i][j] only once.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 10 Apr 2023 20:03:39 +0000 (22:03 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 10 Apr 2023 20:18:59 +0000 (22:18 +0200)
commit054197a2787de271433d5cce15c560b0f9464616
tree24a07f59a468c7b5f840fca3cc5b790596b8b580
parent378b3634c436513d35e0ec5adfcc0b11fe604af6
Use an intermediate variable to compute the sum and access c[i][j] only once.

May fix crash when built with Intel(R) oneAPI DPC++/C++ Compiler 2023.1.0 (2023.1.0.20230320)
Probably an optimization bug!

Also clean up the function signature.
examples/smpi/gemm/gemm.c