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
./create_makefile.py --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
-M[no]r8intrinsics[=float]
-r8 Treat REAL as REAL*8

Hope this helps,
Mat

Thank you