So there already was a check for this method in configure.ac, but as far
as i can tell its not used anywhere. This patch should work, but
untested since I don't have a system with the older API.
I don't think its possible to provide these metrics when using an old
version, since there doesn't appear to be any other way to access these
counters.
From my reading of the libibmad history, these counters should be
available if using libibmad 1.3.2 or newer.
Martins
On 7/2/14, 9:12 AM, Martins Innus wrote:
Ken,
Sorry about that. Can you let me know what version of libibmad
you have on this system? Also if
HAVE_PORT_PERFORMANCE_QUERY_VIA
is defined in your build?
Thanks
Martins
On 7/2/14, 3:13 AM, Nathan Scott wrote:
Hi Martins,
Debian has an old(er) version of infiniband, it looks like we'll need
to figure out a way to make the call we need on older versions, or we
could add to configure.ac in the infiniband section (around 1120) so
that we can conditionally enable building with these new metrics?
(see also HAVE_PORT_PERFORMANCE_QUERY_VIA in ibpmda.h for one such
workaround from awhile back)
thanks!
----- Original Message -----
=== infiniband ===
gcc -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all
-D_FORTIFY_SOURCE=2 -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.9.7\"
-I../../../src/include -I../../../src/include/pcp -c -o ib.o ib.c
ib.c: In function 'ib_fetch_val':
ib.c:673:3: warning: implicit declaration of function 'pma_query_via'
[-Wimplicit-function-declaration]
gcc -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all
-D_FORTIFY_SOURCE=2 -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.9.7\"
-I../../../src/include -I../../../src/include/pcp -o pmdaib -Wall
-L../../../src/libpcp/src -L../../../src/libpcp_pmda/src ib.o pmda.o
-libmad -libumad -L../../../src/libpcp/src
-L../../../src/libpcp_pmda/src
-lpcp_pmda -lpcp
ib.o: In function `ib_fetch_val':
/home/kenj/src/pcp/src/pmdas/infiniband/ib.c:673: undefined
reference to
`pma_query_via'
collect2: error: ld returned 1 exit status
make[2]: *** [pmdaib] Error 1
_______________________________________________
pcp mailing list
pcp@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/pcp
--
---------------------------------------------------------------------
Martins Innus minnus@xxxxxxxxxxxxxxx
Lead Scientific & Urban Visualization Specialist (716) 881-8928
Center for Computational Research
New York State Center of Excellence in Bioinformatics & Life Sciences
University at Buffalo www.ccr.buffalo.edu
pmaqueryvia.patch
Description: Text Data
|