Page 1 of 1

Are PAPI binary libraries architecture dependent?

PostPosted: Thu Nov 03, 2011 8:00 pm
by pmargar
Hi All,

Are compiled PAPI libraries architecture dependent?
Can I build PAPI libraries and my application binary on Intel CPU and run on AMD CPU or vice versa, (OS is the same, in my case it's RedHat Enterprise 4.5 or 5.5)?

Please share your experience.

Thanks in advance.

Re: Are PAPI binary libraries architecture dependent?

PostPosted: Tue Nov 08, 2011 4:11 pm
by vweaver1
pmargar wrote:Hi All,

Are compiled PAPI libraries architecture dependent?
Can I build PAPI libraries and my application binary on Intel CPU and run on AMD CPU or vice versa, (OS is the same, in my case it's RedHat Enterprise 4.5 or 5.5)?

Please share your experience.

Thanks in advance.


The same binary should run fine on both AMD or Intel.

Re: Are PAPI binary libraries architecture dependent?

PostPosted: Tue Nov 08, 2011 5:34 pm
by pmargar
Thanks for confirmation, I already tested, works fine.
But I see some processor dependent configure options:
--with-CPU=
--with-arch=
what is the purpose of these?

Re: Are PAPI binary libraries architecture dependent?

PostPosted: Wed Nov 09, 2011 11:48 am
by vweaver1
pmargar wrote:Thanks for confirmation, I already tested, works fine.
But I see some processor dependent configure options:
--with-CPU=
--with-arch=
what is the purpose of these?


some of these are for more obscure platforms (like BlueGene, etc)

and some are for the perfctr substrate. I was going to say that doesn't matter much anymore, but it looks like you are still using a perfctr so it might matter there. I think it primarily makes a difference if you are running on pentium4 systems.