[3837] | 1 | # compiler options for hector CRAY XT6 |
---|
| 2 | |
---|
| 3 | # NCDF_HOME root directory containing lib and include subdirectories for netcdf4 |
---|
| 4 | # HDF5_HOME root directory containing lib and include subdirectories for HDF5 |
---|
| 5 | # NCDF_INC netcdf include file |
---|
| 6 | # NCDF_LIB netcdf library |
---|
| 7 | # FC Fortran compiler command |
---|
| 8 | # FCFLAGS Fortran compiler flags |
---|
| 9 | # FFLAGS Fortran 77 compiler flags |
---|
| 10 | # LD linker |
---|
| 11 | # LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 12 | # FPPFLAGS pre-processing flags |
---|
| 13 | # AR assembler |
---|
| 14 | # ARFLAGS assembler flags |
---|
| 15 | # MK make |
---|
| 16 | # USER_INC additional include files for the compiler, e.g. -I<include dir> |
---|
| 17 | # USER_LIB additional libraries to pass to the linker, e.g. -l<library> |
---|
| 18 | |
---|
| 19 | # Cray compiler options (default for hector) |
---|
| 20 | %FCFLAGS -em -J. -s integer32 -s real64 -h network=gemini -O0 -g -Rbcdp |
---|
| 21 | #-Rbcp |
---|
| 22 | #%FCFLAGS -em -J. -s integer32 -s real64 -h negmsgs -h network=gemini -h noomp -O3 -rm -G2 -e o |
---|
| 23 | # The equivalent options to -O3... |
---|
| 24 | #%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 |
---|
| 25 | # O3 pure and simple... |
---|
| 26 | #%FCFLAGS -em -J. -s integer32 -s real64 -h negmsgs -h network=gemini -h noomp -O3 -rm -e o |
---|
| 27 | #%LDFLAGS -s integer32 -s real64 -Rbcdp -K trap=fp,denorm |
---|
| 28 | %LDFLAGS -s integer32 -s real64 |
---|
| 29 | |
---|
| 30 | # PGI prgenv |
---|
| 31 | # use "module load netcdf" to setup system netcdf |
---|
| 32 | #%FCFLAGS -i4 -r8 -O3 -Ktrap=fp |
---|
| 33 | #%FCFLAGS -i4 -r8 -g -Mbounds -traceback -O0 -Ktrap=fp |
---|
| 34 | #%LDFLAGS |
---|
| 35 | |
---|
| 36 | # Generic settings for HECToR |
---|
| 37 | %FC ftn |
---|
| 38 | %FFLAGS %FCFLAGS |
---|
| 39 | %LD ftn |
---|
| 40 | %FPPFLAGS -P -C -traditional |
---|
| 41 | %AR ar |
---|
| 42 | %ARFLAGS -r |
---|
| 43 | %MK gmake |
---|
| 44 | #%USER_INC %NCDF_INC |
---|
| 45 | #%USER_LIB %NCDF_LIB |
---|
| 46 | %USER_INC |
---|
| 47 | %USER_LIB |
---|
| 48 | |
---|
| 49 | # replacement options for GNU prgenv |
---|
| 50 | |
---|
| 51 | # %FCFLAGS -fdefault-real-8 -O3 |
---|
| 52 | # %FFLAGS -fdefault-real-8 -O3 |
---|