Hello,
This is indeed a problem (I just reproduced it).
This version of magma added hip and several ways to install magma.
Installing with the makefiles from the tarball uses a file called Makefile.gen that
is generated for cuda, so the makefiles now give wrong results (trying to compile for cuda).
The easiest way to fix this is if you can take magma directly from the repo:
and try installing with the make.inc file that you mentioned.
If you have to use the tarball, another way is to use cmake.
We will fix this issue with the next release.
Thanks,
Stan