# compiler options for hector CRAY XT6 # NCDF_HOME root directory containing lib and include subdirectories for netcdf4 # HDF5_HOME root directory containing lib and include subdirectories for HDF5 # NCDF_INC netcdf include file # NCDF_LIB netcdf library # FC Fortran compiler command # FCFLAGS Fortran compiler flags # FFLAGS Fortran 77 compiler flags # LD linker # LDFLAGS linker flags, e.g. -L if you have libraries in a # FPPFLAGS pre-processing flags # AR assembler # ARFLAGS assembler flags # MK make # USER_INC additional include files for the compiler, e.g. -I # USER_LIB additional libraries to pass to the linker, e.g. -l # Cray compiler options (default for hector) %FCFLAGS -em -J. -s integer32 -s real64 -h network=gemini -O0 -g -Rbcdp #-Rbcp #%FCFLAGS -em -J. -s integer32 -s real64 -h negmsgs -h network=gemini -h noomp -O3 -rm -G2 -e o # The equivalent options to -O3... #%FCFLAGS -em -J. -s integer32 -s real64 -h negmsgs -h network=gemini -h noomp -O cache2,fp2,scalar3,thread2,vector3,mpi0,modinline,ipa0,noaggress,autoprefetch,noautothread,fusion2,msgs,nooverindex,pattern,shortcircuit2,unroll2,nozeroinc -rm -e o # O3 pure and simple... #%FCFLAGS -em -J. -s integer32 -s real64 -h negmsgs -h network=gemini -h noomp -O3 -rm -e o #%LDFLAGS -s integer32 -s real64 -Rbcdp -K trap=fp,denorm %LDFLAGS -s integer32 -s real64 # PGI prgenv # use "module load netcdf" to setup system netcdf #%FCFLAGS -i4 -r8 -O3 -Ktrap=fp #%FCFLAGS -i4 -r8 -g -Mbounds -traceback -O0 -Ktrap=fp #%LDFLAGS # Generic settings for HECToR %FC ftn %FFLAGS %FCFLAGS %LD ftn %FPPFLAGS -P -C -traditional %AR ar %ARFLAGS -r %MK gmake #%USER_INC %NCDF_INC #%USER_LIB %NCDF_LIB %USER_INC %USER_LIB # replacement options for GNU prgenv # %FCFLAGS -fdefault-real-8 -O3 # %FFLAGS -fdefault-real-8 -O3