Installing PAPI on the Niagara

Open discussion of PAPI.

Installing PAPI on the Niagara

Postby tigrage » Mon Aug 29, 2011 9:58 pm

I've gone through some grief, so I thought I'd post my story to help others.
I had to

export CC=/usr/bin/cc

to force configure to use cc (Solaris Studio) instead of gcc.

Then in solaris_niagara2.c, two changes are necessary.

typedef struct __t2_pst_table
{
int papi_pst; // change from unsigned int to int
char *ntv_event[MAX_COUNTERS];
int ntv_ctrs;
int ntv_opcode;
} __t2_pst_table_t;

and

int _niagara2_get_system_info( papi_mdi_t mdi );
to
int _niagara2_get_system_info( papi_mdi_t *mdi );

Hope this helps!
Next, I have the joys of accessing PAPI from a Java program via JNI :)
tigrage
 
Posts: 1
Joined: Mon Aug 29, 2011 9:49 pm

Re: Installing PAPI on the Niagara

Postby vweaver1 » Fri Sep 02, 2011 11:22 am

tigrage wrote:typedef struct __t2_pst_table
{
int papi_pst; // change from unsigned int to int
char *ntv_event[MAX_COUNTERS];
int ntv_ctrs;
int ntv_opcode;
} __t2_pst_table_t;


did this fix an error, or just a warning?

tigrage wrote:int _niagara2_get_system_info( papi_mdi_t mdi );
to
int _niagara2_get_system_info( papi_mdi_t *mdi );


This fix seems to already exist in the CVS tree. Were you using PAPI 4.1.3?

Thanks for the bug report...
vweaver1
 
Posts: 50
Joined: Wed Feb 17, 2010 4:02 pm


Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest