CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2011, 15:52
Talking [SOLVED] Intel Compiler 12.1 + Ubuntu 11.10 (gcc 4.6) + OpenFOAM 2.0.x
  #1
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I've been experimenting with Icc (although I have an AMD machine ) 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

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

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
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
11.10, 12.1, icc, intel, ubuntu


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
OpenFOAM compiled with Intel C++ Compiler? af631717 OpenFOAM Running, Solving & CFD 4 June 5, 2009 07:41
Question on specify gcc compiler for OpenFOAM 15 peterlai OpenFOAM Installation 2 October 2, 2008 08:20
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 01:16.