Re: [perfmon2] [Ptools-perfapi] PAPI support for IBM POWER8 firestone processors
Status: Beta
Brought to you by:
seranian
From: Philip M. <mu...@ic...> - 2015-11-14 00:38:09
|
Bob, Thanks for this. CC’ing my friend Stephane to update the code in libpfm. You going to be at SC? Would be good to meet. Phil > On Nov 6, 2015, at 2:36 PM, Bob Walkup <wa...@us...> wrote: > > IBM's most recent POWER8 processor is not recognized by the __is_processor() macro in PAPI 5.4.1, so PAPI thinks there are no hardware counters available. The POWER8 processor code has changed : > > older POWER8 "tuleta" version : processor version register returns 0x004b > newer POWER8 "firestone" version : processor version register returns 0x004d > > Please update PAPI (src/libpfm4/lib/pfmlib_power_priv.h, src/libpfm4/lib/pfmlib_power8.c) to include support for this "firestone" POWER8 variety. > > Regards, > Bob Walkup (wa...@us..., 914-945-1512) > --------------------------------------------------------------- > > test code to print the processor version number : > /* Special Purpose Registers (SPRNs)*/ > #define SPRN_PVR 0x11F /* Processor Version Register */ > > /* Processor Version Register (PVR) field extraction */ > > #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ > > int get_pvr(void) > { > unsigned long ret; > asm volatile("mfspr %0,%1" : "=r" (ret): "i" (SPRN_PVR)); > return ((int) ret); > } > > #include <stdio.h> > > int main(int argc, char * argv[]) > { > int pvr; > pvr = get_pvr(); > printf("processor version register returns %#6.4x\n", PVR_VER(pvr)); > return 0; > } > _______________________________________________ > Ptools-perfapi mailing list > Pto...@ee... > http://lists.eecs.utk.edu/mailman/listinfo/ptools-perfapi |