[petsc-dev] Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1 MPI process

Barry Smith bsmith at mcs.anl.gov
Sat Oct 8 16:56:03 CDT 2016


  Funny, I thought Jed said I stripped out all the PAPI stuff? Maybe I should really strip it out, has not been used in years and as Jed says it has Jack's slimeprints on it.


> On Oct 8, 2016, at 4:50 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> 
>> 
> 
> I was previously looking at wrong sources..
> 
>>>>> [0]PETSC ERROR: #1 PetscLogInitialize() line 219 in /builddir/build/BUILD/petsc-3.7.3/petsc-3.7.3/src/sys/logging/plog.c
> 
> #if defined(PETSC_HAVE_PAPI)
>  ierr = PAPI_library_init(PAPI_VER_CURRENT);
>  if (ierr != PAPI_VER_CURRENT) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_LIB,"Cannot initialize PAPI");
>  ierr = PAPI_query_event(PAPI_FP_INS);CHKERRQ(ierr);
>  ierr = PAPI_create_eventset(&PAPIEventSet);CHKERRQ(ierr);
>  ierr = PAPI_add_event(PAPIEventSet,PAPI_FP_INS);CHKERRQ(ierr);
>  ierr = PAPI_start(PAPIEventSet);CHKERRQ(ierr);
> #endif
> 
> I don't know if this stuff is supporsed to work. Its best if you disable PAPI in the build.
> 
> Satish




More information about the petsc-dev mailing list