by Julien Langou » Tue Nov 26, 2013 3:51 pm
Hello,
I do not know how to do the hack you want (using "long double" instead of "double") with a compiler flag. Sorry.
This said, "long double" is not much much longer than "double", so in general you would be better off using "quad". I personally am always disappointed when I promote to "long double".
To use "quad" for ZGETRF and ZGETRS, you can either edit all the routine stack so that the code use "quad". Although this seems scary this is not that bad, I did it a few times. Or you can use a multi precision LAPACK package, for example MPACK. (I never used it.)
LAPACK does not currently support "long double" nor "quad".
Cheers,
Julien.