Warning, /tools/build_options/linux_amd64_pgf90+mpi_greenplanet is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
0f0f7746ea Yun *0001 #!/bin/bash
0002 #
0003 #
0004 # tested on greenplanet.ps.uci.edu
0005 # Linux greenplanet.ps.uci.edu 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
0006 # pgf90 8.0-4 64-bit target on x86-64 Linux -tp penryn-64
0007 # Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
0008 # Copyright 2000-2009, STMicroelectronics, Inc. All Rights Reserved.
0009
0010 FC='mpif90'
0011 CC='mpicc'
0012 LINK='mpif90'
0013
0014 MPI='true'
eeae9c26d7 Jean*0015
0f0f7746ea Yun *0016 DEFINES='-DWORDLENGTH=4'
eeae9c26d7 Jean*0017 CPP='/usr/bin/cpp -P -traditional'
0018 EXTENDED_SRC_FLAG='-Mextend'
0019
0020 INCLUDES='-I/sopt/mpi/mpich/pgi/include -I/sopt/netcdf/netcdf3-gcc-serial/include'
0021 LIBS='-L/sopt/mpi/mpich/pgi/lib -L/sopt/netcdf/netcdf3-gcc-serial/lib'
0f0f7746ea Yun *0022
0023 if test "x$IEEE" = x ; then
0024 # No need for IEEE-754
eeae9c26d7 Jean*0025 FFLAGS="$FFLAGS -byteswapio -Mnodclchk"
0f0f7746ea Yun *0026 FOPTIM='-O2 -Munroll'
0027 else
0028 # Try to follow IEEE-754
eeae9c26d7 Jean*0029 FFLAGS="$FFLAGS -byteswapio -Mnodclchk"
0f0f7746ea Yun *0030 FOPTIM='-tp amd64 -O0 -Munroll -Kieee'
0031 fi
eeae9c26d7 Jean*0032 #- might want to use '-r8' for fizhi pkg:
0033 #FFLAGS="$FFLAGS -r8"