1 |
#!/bin/bash |
#!/bin/bash |
2 |
# |
# |
3 |
# composed and tested by ce107 on ross/weddell |
# Composed and tested by ce107 on ross/weddell (Opteron system) |
4 |
# for more speed on Core2 processors replace -xW with -xT |
# Should work fine on EM64T and other AMD64 compatible Intel systems |
5 |
# for more speed on Pentium4 based EM64T processors replaces -xW with -xP |
# a) Processor specific flags: |
6 |
|
# 1) for more speed on Core2 processors replace -xW with -xT |
7 |
|
# 2) for more speed on Pentium4 based EM64T processors replaces -xW with -xP |
8 |
|
# b) For more speed, provided your data size doesn't exceed 2GB you can |
9 |
|
# remove -fPIC which carries a performance penalty of 2-6%. |
10 |
|
# c) Provided that the libraries you link to are compiled with -fPIC this |
11 |
|
# optfile should work. |
12 |
|
# d) You can replace -fPIC with -mcmodel=medium which may perform faster |
13 |
|
# then -fPIC and still support data sizes over 2GB per process but all |
14 |
|
# the libraries you link to myst be compiled with -fPIC or -mcmodel=medium |
15 |
|
|
16 |
FC=ifort |
FC=ifort |
17 |
F90C=ifort |
F90C=ifort |
18 |
CC=icc |
CC=icc |
19 |
LINK='mpif90 -i-static -no-ipo' |
LINK='ifort -i-dynamic -no-ipo' |
20 |
|
|
21 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
22 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
32 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
33 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0 -traceback -ftrapuv -fpmodel except -warn all' |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0 -traceback -ftrapuv -fpmodel except -warn all' |
34 |
else |
else |
35 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecli -fPIC' |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC' |
36 |
fi |
fi |
37 |
|
|
38 |
# Note that the -mp switch is for ieee "maintain precision" and is |
# Note that the -mp switch is for ieee "maintain precision" and is |