PGI with double precision

want to run a code with a double precision.

If it compile with ifort I use this command to generate make file
./ --compiler=ifort --otherflags=’-fast -r8’

I want to use pgf90 so what is equivalent to -r8

Hi Ali,

You can use “-r8” or “-Mr8” to promote the default kind of REAL to double precision.

% pgfortran -help | grep r8
-M[no]r8 Promote REAL variables and constants to DOUBLE PRECISION
-r8 Treat REAL as REAL*8

Hope this helps,

Thank you