How to build Open FOAM with Intel compilers...?
Hi
I have installed intel parallel studio in My Ubuntu 12.04, and I am trying to build OF-2.1.1 using intel. I untarred Third-party, as well as OpenFoam-2.1.1 I set the environment in /etc/bashrc after changing the default compilers to intel. I cd to third party, and run ./Allwmake compilation occurs without incidents, then i cd to OpenFOAM-2.1.1, and run ./Allwmake again. The libraries build ok, but some of the solvers and utilities do not build, the typical message involves something about libpstream.so : Code:
icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,654,819,1125,1476,1505,1572 -xSSE3 -O2 -no-prec-div -DNoRepository -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/alex/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64IccDPOpt/multiphaseEulerFoam.o -L/home/alex/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64IccDPOpt/lib \ I am using Intel parallel_studio_xe_2011... Best regards Alex |
Greetings Alex,
You better try with the latest 2.1.x, because some tweaks for ICC have been done after 2.1.1 was released. Well... apparently only this was done for it: https://github.com/OpenFOAM/OpenFOAM...08190dc7c05e66 - so maybe you can still use 2.1.1, but apply those changes manually! As for specific instructions on using Icc... not that I'm aware of, but you are already in the right track! The change from that commit should do the final trick! Best regards, Bruno |
Hi Wyldckat
I have built it already Thanks for the hint :) BRGDS Alex |
Hi Bruno,
me again :) , this time trying to cmpile OF 2.1.x with icc. I've got some errors directly at the beginning of the ThirdParty build: Quote:
The rest of the TP-compilation seems to be ok. Best regards, Illya P.S. building OF causes lots of exactly same "catastrophic errors" |
Hi Illya,
:eek: very little information you're giving me ;) I'll need to know which version of Icc you're using and which Linux Distribution you're using. I ask this because with each new Icc version, the required list of options can change and because Icc depends very much on the Gcc version that is installed in the system! Best regards, Bruno |
Hi Bruno,
sorry, here it comes. Icc: Quote:
Quote:
Quote:
Illya |
Hi Illya,
OK, I haven't tested this yet, but the idea is this:
Bruno |
suggestion
The issue can probably be resolved by adding -U__GXX_EXPERIMENTAL_CXX0X__ switch.
According to your configuration locate the appropriate directory in $WM_PROJECT_DIR/wmake/rules/ Edit the c++ named files and append the key so it looks like below: Code:
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC -U__GXX_EXPERIMENTAL_CXX0X__ |
All times are GMT -4. The time now is 14:29. |