CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [SOLVED] Intel Compiler 12.1 + Ubuntu 11.10 (gcc 4.6) + OpenFOAM 2.0.x (http://www.cfd-online.com/Forums/openfoam-installation/94083-solved-intel-compiler-12-1-ubuntu-11-10-gcc-4-6-openfoam-2-0-x.html)

wyldckat November 4, 2011 15:52

[SOLVED] Intel Compiler 12.1 + Ubuntu 11.10 (gcc 4.6) + OpenFOAM 2.0.x
 
Greetings to all!

I've been experimenting with Icc (although I have an AMD machine :p) and I'm stuck with Ubuntu 11.10. Those two combined resulted in a dangerous mix where building OpenFOAM 2.0.x out of the box is impossible... unless you know the trick :cool:

Intel's Compiler 12.1 does not support the bleeding edge C++0x features provided with Gcc 4.6, so there are a lot of crazy messages that pop up if one does not add "-U__GXX_EXPERIMENTAL_CXX0X__" to the recipe (source: icpc 12.1.0, Ubuntu 11.10 (oneiric) and g++). Edit these two files and add the expression in bold:
  1. "wmake/rules/linux64Icc/c++"
    Code:

    c++FLAGS    = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC -U__GXX_EXPERIMENTAL_CXX0X__
  2. "wmake/rules/linux64Icc/c"
    Code:

    cFLAGS      = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC -U__GXX_EXPERIMENTAL_CXX0X__
And there you go, it's ready to cook :D

Best regards,
Bruno

PS: Wondering why I wrote Ğalthough I have an AMD machineğ. This is why: http://en.wikipedia.org/wiki/Intel_C...iler#Criticism


All times are GMT -4. The time now is 00:49.