[Kratos] Kratos compilation with gcc AND OPENMP

Riccardo Rossi rrossi en cimne.upc.edu
Mar Nov 9 11:34:54 CET 2010

Dear List,
     this is a sort of preliminary announcement:

i did some benchmarks and arrived to the conclusion that the auxiliary
workspace we use inside elements DOES NOT provide any performance

     Since it prevents compilation with compilers other than OpenMP, 
i removed all of the threadprivates from the 

those two applicatins, and the external_solvers_app can now compile with
gcc activating the -fopenmp flag.

Surprisingly...performance is now much better with parallel gcc than
with intel!!

I believe that, aside for rough performance, it is a very important
conclusion, since by removing all of the threadprivates, and all of the
static variables in the code we can downgrade our needs from
OpenMP 3.0 to OpenMP 2.5. This will greatly improve portability AND will
allow compiling a parallel application under windows. 

There is still some work to be done in removing threadprivates from the
structural application, i will have a look at that and eventually ask
for help.

A little problem that still exists is related to a known issue:

on "some" linux systems it is necessary to do
export LD_PRELOAD=libstdc++.so.6

prior to launching the examples.

the issue is described here:


or in many other posts on the internet.

to compile one should modify the Jamroot so to include -fopenmp in the
gcc flags and also include the libgomp.
See the changes in the Common_Jamroot.

ciao all

Riccardo Rossi, Ph.D, Civil Engineer
member of the Kratos Group: kratos.cimne.upc.es
Centro Internacional de Métodos Numéricos en Ingeniería (CIMNE)
Universidad Politécnica de Cataluña (UPC)
Edificio C-1, campus Norte UPC
Gran Capitan, s/n
08034 Barcelona, España
Tel. (+34) 93 401 73 99


Los datos de carácter personal contenidos en el mensaje, se registrarán
en un fichero para facilitar la gestión de las comunicaciones de CIMNE.
Se pueden ejercitar los derechos de acceso, rectificación, cancelación y
oposición por escrito, dirigiéndose a nuestras oficinas de CIMNE, Gran
Capitán s/n,  Edificio C1 - Campus Norte UPC, 08034 Barcelona, España.


Les dades de caràcter personal contingudes en aquest missatge es
registraran en un fitxer per facilitar la gestió de les comunicacions
del CIMNE. Es poden exercir els drets d'accés, rectificació,
cancel·lació i oposició, per escrit a les nostres oficines del CIMNE,
Gran Capità s/n, Edifici C1, Campus Nord UPC, 08034 Barcelona, Espanya.


All personal data contained in this mail will be processed
confidentially and stored in a file property of CIMNE in order to manage
corporate communications. You may exercise the right of access,
rectification, deletion and objection by letter sent to CIMNE, Gran
Capitán, Edificio C1 - Campus Norte UPC, 08034 Barcelona, Spain.

More information about the Kratos mailing list