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

Recommended Compiler Options for OpenFOAM on a HPC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2012, 05:31
Default Recommended Compiler Options for OpenFOAM on a HPC
  #1
New Member
 
Nishit Joseph
Join Date: Nov 2010
Posts: 29
Rep Power: 16
JLight is on a distinguished road
Hi
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:
    Code:
    icc --version
    icc (ICC) 12.1.3 20120212
    Options: -O3 -xAVX -no-prec-div -fp-model precise -fp-model source
  2. GCC:
    Code:
    gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/local/gcc/4.7.2/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
    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)?

Cheers!

NJ
JLight is offline   Reply With Quote

Old   December 12, 2012, 10:15
Default
  #2
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
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,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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 16:11
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
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Wmake specify compiler options chris1980 OpenFOAM 0 July 25, 2006 13:58


All times are GMT -4. The time now is 19:47.