Gauss Algorithm written in Fortran slower than written in Python for large matrices?

Thank you @rnoffke .
Sorry for a lazy question, would you mind posting the whole Jupyter Notebook here?
I tried the link of the Jupyter notebook book you posted,

and I also

pip install gauss

in my anaconda 3.

But when I run the Juypyter notebook I got an error message below,

I am using anaconda 3 on windows 10.

By the way, I just bought a Macbook Air with 16GB ram.
Here is what I found, for a memory heavy Fortran code I wrote, (it frequently operates big arrays and matrices, consumes 6 - 12 GB memory),
M1 chip with gfortran with -O3 -march=native, took 30 seconds,
while my Thinkpad P72 with Intel xeon 2186M with 64 GB DDR4 2666 ECC, using intel OneAPI, -O3 -xHost, took 70 seconds.

Air’s M1 has memory bandwidth 68.5GB/s, while my Thinkpad has like 35 GB/s. So it is a factor of 2 difference. I believe speedup of my code is due to the memory speed difference between M1 and my Thinkpad’s DDR4 2666.

For smaller matrices and arrays, the speed difference become smaller.

2 Likes