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 <wal...@us.ibm.com> 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 (wal...@us.ibm.com, 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
> ptools-perf...@eecs.utk.edu
> http://lists.eecs.utk.edu/mailman/listinfo/ptools-perfapi

------------------------------------------------------------------------------
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to