CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Recommended Compiler Options for OpenFOAM on a HPC

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2012, 04:31
Default Recommended Compiler Options for OpenFOAM on a HPC
New Member
Nishit Joseph
Join Date: Nov 2010
Posts: 29
Rep Power: 15
JLight is on a distinguished road
I was wondering if anyone can suggest the compiler options to use with OpenFOAM-2.1.1 to squeeze out the maximum performance on a HPC. The HPC has Intel Xeon CPU E5-2670.

I initially compiled OF with:
  1. Intel Compiler:
    icc --version
    icc (ICC) 12.1.3 20120212
    Options: -O3 -xAVX -no-prec-div -fp-model precise -fp-model source
  2. GCC:
    gcc -v
    Using built-in specs.
    Target: x86_64-unknown-linux-gnu
    Configured with: /usr/local/src/GCC/gcc-4.7.2/configure --prefix=/usr/local/gcc/4.7.2 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++,fortran --with-mpfr=/usr/local/mpfr/3.1.1/ --with-gmp=/usr/local/gmp/5.0.5/ --with-mpc=/usr/local/mpc/1.0/
    Thread model: posix
    gcc version 4.7.2 (GCC)
    Options: -march=corei7-avx -O3 -frounding-math -fsignaling-nans

My initial tests showed the one compiled with gcc was slightly faster when using the MotorBike Tute with simpleFoam.

Anyone have anything to share with regards to compiler performance with -O2/-O3 with gcc and/or intel or any other options (eg AVX)?


JLight is offline   Reply With Quote

Old   December 12, 2012, 09:15
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi NJ,

You can find some additional pointers on the comments and blog post here:
OpenFOAM with ICC - Intel's ICC is "allergic" to AMD CPUs

Best regards,
wyldckat is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Wmake specify compiler options chris1980 OpenFOAM 0 July 25, 2006 12:58

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