CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] Profiling using Score-P (https://www.cfd-online.com/Forums/openfoam-installation/165857-profiling-using-score-p.html)

sharmasanthosh January 27, 2016 22:33

Profiling using Score-P
 
Hi

I am using OpenFOAM 1.7.x. I want to profile it using Score-P.


Before building in Opt mode, in the bashrc file, I made the following changes for x86_64,

export WM_CC='scorep mpicc'
export WM_CXX='scorep mpicxx'

After running the solver, no profiling data was generated.

Where else should I make the changes? Any changes required in Make/options?

Thanks
Santhosh

ripudaman February 25, 2016 14:41

valgrind?
 
not sure about scorep but I have used valgrind previously to profile my code. I was able to use both the debug version and opt version with valgrind and successfully profile my code.

Ripu

Knusper January 17, 2017 13:17

How to compile for score-p usage?
 
Has anybody found a solution on how to compile for using score-p?

The instructions seem pretty clear (taken from eg The RWTH HPC-Cluster User's Guide Version 8.4.0 , page 85):

Code:

Instrumentation: To perform automatic instrumentation, simply replace
your compiler command with the appropriate Score-P wrapper, for example:
$CC --> scorep $CC
$CXX --> scorep $CXX
$FC --> scorep $FC
If your application uses MPI, you have to specify the MPI-compiler-wrapper
for Score-P to ensure correct linking of the MPI libraries, e.g.
$MPICC --> scorep $MPICC for C code.

Changing the $WM_CC environment variable from "gcc" to "scorep gcc" seems obvious then.

But how to change the MPI-compiler-wrapper, like demanded in the instruction? I currently don't see a corresponding OpenFOAM environment variable for that. Also, I don't see the location in the wmake script where this could be changed.

EDIT:
I consulted the IT Servicedesk of my institution. It seems like the problem is really not trivial.

jh.goebbert February 18, 2017 02:31

OpenFOAM + Score-P
 
Hello OpenFOAM users,

we have just documented how to build OpenFOAM at the Jülich Supercomputing Centre (www.fz-juelich.de/ias/jsc) here:
https://trac.version.fz-juelich.de/v...tware/OpenFOAM

This HowTo also includes detailed instructions on how to build OpenFOAM with Score-P:
https://trac.version.fz-juelich.de/v.../config_ScoreP

The HowTo is for OpenFOAM 3.x on the supercomputer JURECA, but it should be not too difficult for you to adopt it to other versions of OpenFOAM and other systems.

Best regards,
Jens Henrik Göbbert


All times are GMT -4. The time now is 06:26.