summaryrefslogtreecommitdiffstats
path: root/config/apple
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2010-10-08 20:57:17 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2010-10-08 20:57:17 (GMT)
commit82be08b34a56f0d3e25ec8870e36ad59b4f1f619 (patch)
tree3b3b2bc1c20d1a14ee87fd0a435da3c81ada0476 /config/apple
parent236e8b8885dba83f3319e95e9ae4bd50eb75e7e5 (diff)
downloadhdf5-82be08b34a56f0d3e25ec8870e36ad59b4f1f619.zip
hdf5-82be08b34a56f0d3e25ec8870e36ad59b4f1f619.tar.gz
hdf5-82be08b34a56f0d3e25ec8870e36ad59b4f1f619.tar.bz2
[svn-r19566] Maintenance: Added -O3 to be used with the C Intel v 11 compilers; set default to -O for all
unknown versions of the C Intel compilers. Modified apple config file to display Intel compiler information. Updated RELEASE.txt notes accordingly. Platfroms tested: jam, amani and dubna (Mac 64-bit) with Intel C, Fortran and C++ compilers.
Diffstat (limited to 'config/apple')
-rw-r--r--config/apple21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/apple b/config/apple
index 10674fb..babcdad 100644
--- a/config/apple
+++ b/config/apple
@@ -62,6 +62,11 @@ case $CC in
grep 'GCC' | sed 's/.*\((GCC) [-a-z0-9\. ]*.*\)/\1/'`
;;
+ *icc*)
+ cc_version_info=`$CC $CCFLAGS $H5_CCFLAGS -V 2>&1 | grep 'Version' |\
+ sed 's/\(Intel.* Compiler\).*\( Version [a-z0-9\.]*\).*\( Build [0-9]*\)/\1\2\3/'`
+ ;;
+
*)
echo "No match to get cc_version_info for $CC"
;;
@@ -72,6 +77,16 @@ case $FC in
fc_version_info=`$FC $FCFLAGS $H5_FCFLAGS --version 2>&1 |\
grep 'GCC' | sed 's/\(.*(GCC) [-a-z0-9\. ]*\).*/\1/'`
;;
+
+ *ifc*|*ifort*)
+ fc_version_info=`$FC $FCFLAGS $H5_FCFLAGS -V 2>&1 | grep 'Version' |\
+ sed 's/\(Intel.* Compiler\).*\( Version [a-z0-9\.]*\).*\( Build [0-9]*\)/\1\2\3/'`
+ ;;
+
+ *)
+ echo "No match to get fc_version_info for $FC"
+ ;;
+
esac
# get c++ version info
@@ -80,6 +95,12 @@ case $CXX in
cxx_version_info=`$CXX $CXXFLAGS $H5_CXXFLAGS --version 2>&1 |\
grep 'GCC' | sed 's/.*\((GCC) [-a-z0-9\. ]*.*\)/\1/'`
;;
+
+ *icpc*)
+ cxx_version_info=`$CXX $CXXFLAGS $H5_CXXFLAGS -V 2>&1 | grep 'Version' |\
+ sed 's/\(Intel.* Compiler\).*\( Version [a-z0-9\.]*\).*\( Build [0-9]*\)/\1\2\3/'`
+ ;;
+
*)
echo "No match to get cxx_version_info for $CXX"
;;