OpenFOAM static compilation

OpenFOAM is quite a beast to compile — first of all with regard to size, but also when You go out of the normal. Actually on standard Linux like Ubuntu with a few packages pre-installed (like the system’s Open MPI, and for the ThirdParty’s gmp-dev and mpfr-dev) it is quite easy to install!

However, if You want to use different settings, use different compilation options, or want to do performance analysis using Scalasca or VampirTrace, things get complicated.

Changing compiler options

With regard to compiler options, it may be a good idea to compare the previous compilation with the new compilation. This requires setting WM_COMPILE_OPTION to another value, e.g. from Opt to OptIp, referring to Intel compiler’s -ip switch for single-file interprocedural optimization.
Furthermore, You have to copy the compiler’s rule files for Your platform, i.e. in my case the files wmake/rules/linux64Icc/cOptIp and wmake/rules/linux64Icc/c++OptIp.

Dieser Beitrag wurde unter Tec veröffentlicht. Setze ein Lesezeichen auf den Permalink.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.