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

[OpenFOAM.com] Profiling using Score-P

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By jh.goebbert

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2016, 22:33
Default Profiling using Score-P
  #1
New Member
 
Santhosh
Join Date: Jan 2016
Posts: 2
Rep Power: 0
sharmasanthosh is on a distinguished road
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
sharmasanthosh is offline   Reply With Quote

Old   February 25, 2016, 14:41
Default valgrind?
  #2
Member
 
Ripudaman Manchanda
Join Date: May 2013
Posts: 55
Rep Power: 12
ripudaman is on a distinguished road
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
ripudaman is offline   Reply With Quote

Old   January 17, 2017, 13:17
Default How to compile for score-p usage?
  #3
New Member
 
Michael Hoss
Join Date: Sep 2016
Posts: 8
Rep Power: 9
Knusper is on a distinguished road
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.

Last edited by Knusper; January 24, 2017 at 09:25.
Knusper is offline   Reply With Quote

Old   February 18, 2017, 02:31
Default OpenFOAM + Score-P
  #4
New Member
 
Jens Henrik Göbbert
Join Date: Feb 2017
Posts: 1
Rep Power: 0
jh.goebbert is on a distinguished road
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
wyldckat, serles and Knusper like this.
jh.goebbert 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
Calculation of correlation score NikhilAshok Structural Mechanics 0 March 17, 2018 23:31
OpenFOAM profiling on Intel Xeon and Xeon Phi processors Sumeet Patil OpenFOAM Programming & Development 3 April 28, 2017 14:19
OpenFOAM profiling with HPC Toolkit Sumeet Patil OpenFOAM Pre-Processing 0 April 4, 2017 03:08
MPI profiling GeraBarna OpenFOAM Programming & Development 12 May 8, 2016 15:28
Feature proposal: Application level profiling gschaider OpenFOAM Bugs 4 April 29, 2009 13:43


All times are GMT -4. The time now is 04:46.