[gmx-developers] Compiling Gromacs with Score-P support

Matthieu.Dreher at imag.fr Matthieu.Dreher at imag.fr
Tue Jun 11 17:30:41 CEST 2013


Hi everyone

I'm trying to compile Gromacs-4.6.2 with score-p instrumentation. To  
do so, I need to compile with score-p so doing something like this :
  scorep gcc myfile.c ... etc

To compile Gromacs with scorpe, I do :
  CC="scorep gcc" CXX="scorep c++" ccmake ../  
-DCMAKE_INSTALL_PREFIX:PATH=/home/okidor/fvnano-dev/gromacs-4.6.2/install

The cmake procedure seems to end properly but the compilation crash with :

/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_thread_affinity.c:  
In function ?gmx_check_thread_affinity_set?:
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_thread_affinity.c:357:5: attention : implicit declaration of function ?CPU_ZERO?  
[-Wimplicit-function-declaration]
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_thread_affinity.c:358:5: attention : implicit declaration of function ?sched_getaffinity?  
[-Wimplicit-function-declaration]
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_thread_affinity.c:384:35: erreur: ?CPU_SETSIZE? undeclared (first use in this  
function)
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_thread_affinity.c:384:35: note: each undeclared identifier is reported only once for each function it appears  
in
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_thread_affinity.c:386:9: attention : implicit declaration of function ?CPU_ISSET?  
[-Wimplicit-function-declaration]

I tried again with this :
   CC="scorep gcc -D_GNU_SOURCE" CXX="scorep c++" ccmake ../SOURCE  
-DCMAKE_INSTALL_PREFIX:PATH=/home/okidor/fvnano-dev/INSTALL/

which avoid the previous error but errors still happend later :

/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_thread_affinity.c:39:0: attention : « _GNU_SOURCE » redéfini [enabled by  
default]
<command-line>:0:0: note: ceci est la localisation d'une précédente définition
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/gmx_cpuid.c:40:0:  
attention : « _GNU_SOURCE » redéfini [enabled by default]
<command-line>:0:0: note: ceci est la localisation d'une précédente définition
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/trxio.c: In  
function ?flowvr_next_data?:
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/trxio.c:857:15:  
attention : assignment from incompatible pointer type [enabled by  
default]
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/copyrite.c:672:19:  
erreur: static declaration of ?_gmx_ver_string? follows non-static  
declaration
/home/okidor/fvnano-dev/SOURCE/gromacs-4.6/src/gmxlib/version.h:41:19:  
note: previous declaration of ?_gmx_ver_string? was here

In the end I'm not sure it is the appropriate way to instrument the  
code. So I was wondering if someone has already try to instrument  
Gromacs code with score-p (or another tracing program) and if yes some  
problems has happend?

Thank you for your attention

Dreher Matthieu



More information about the gromacs.org_gmx-developers mailing list