first of all, thank you for your answer.
- The initialization of the matrix is incorrect. When I was writing the e-mail I was trying to reduce the sample code to a minimal size which reproduces the error. Accidentally I remove the part which puts ones on the diagonal. I started with a small 3x3 problem where is easy to see if the results are correct or not by eye.
- Trailing zeros on the lwork is an error. Of course, it is 198.
- In the beginning, I was not aware MAGMA has a Fortran interface, therefore, I wrote my own which addresses magma_init_ -> magma_init. I already moved to magmaf_* native interface.
- The valuable information for me is it works on your computer. It means something is broken on my system. I was able to run other routines like magma(blas)_dgemm, magma_dgetrf, magma_dgetrs, producing correct results. So my installation cannot be completely wrong. However, I don't have the test suite, because I installed magma through spack and I could not find tests in the spack install location. I have installed it with CUDA and openblas backends:
ma...@2.6.1%g...@11.2.0+cuda+fortran~ipo~rocm+shared amdgpu_target=none build_type=RelWithDebInfo cuda_arch=80 arch=linux-debian11-zen
^cm...@3.21.4%g...@11.2.0~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-debian11-zen
^email@example.com%g...@11.2.0~symlinks+termlib abi=none arch=linux-debian11-zen
^ope...@1.1.1l%g...@11.2.0~docs certs=system arch=linux-debian11-zen
^berke...@18.1.40%g...@11.2.0+cxx~docs+stl patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-debian11-zen
^libi...@1.16%g...@11.2.0 libs=shared,static arch=linux-debian11-zen
^x...@5.2.5%g...@11.2.0~pic libs=shared,static arch=linux-debian11-zen
^open...@0.3.18%g...@11.2.0~bignuma~consistent_fpcsr~ilp64+locking+pic+shared threads=none arch=linux-debian11-zen
I tried to install it also from the source, but I encountered some installation issues. Like, at first I started with the CMake build system, it didn't work out-of-the-box, It was complaining about missing CMake.src file, which I was able to produce with the make, but then other problems emerged complaining about missing sources for targets. Is there documentation about MAGMAs CMake build system? On the website, I found info about Makefile&make.inc.
Anyway, I will try to track the problem on my PC. Maybe I can try MAGMA with MKL.
Thank you again.