[openib-general] Re: [PATCH] rdma_lat-09 and results

Michael S. Tsirkin mst at mellanox.co.il
Wed Jun 22 00:19:28 PDT 2005


Quoting r. Grant Grundler <iod00d at hp.com>:
> Subject: Re: [PATCH] rdma_lat-09 and results
> 
> On Sat, Jun 04, 2005 at 09:12:37PM +0300, Michael S. Tsirkin wrote:
> > > grundler at gsyprf3$ taskset 1 ./rdma_lat -C -n 100000
> > > libibverbs: Warning: no userspace device-specific driver found for uverbs0
> > >         driver search path: /usr/lib/infiniband
> > > 	No IB devices found
> > > 	Segmentation fault
> 
> After going two more rounds, I'm still getting the same error.

Yes, I think we need to make it easier to build static libraries.

> At this point I admit defeat and hope that someone could just tell
> me the last bit of linker magic or env variable so it Just Works.


Here's what works for me:

>cc -rdynamic -u openib_driver_init -Wall -O2 -g -D_GNU_SOURCE rdma_bw.c get_clock.c /usr/local/lib/infiniband/mthca.a /usr/local/lib/libibverbs.a  -o rdma_bw -ldl -lsysfs -lpthread

>ldd rdma_bw
        libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaaabc1000)
        libsysfs.so.1 => /lib64/libsysfs.so.1 (0x00002aaaaacc5000)
        libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00002aaaaadcf000)
        libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaaaee3000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)

>./rdma_bw
  local address:  LID 0x02, QPN 0xc0406, PSN 0xd994f5 RKey 0x480030 VAddr 0x00000000513000

> Or maybe a "make static" target in the Makefile....*sigh*

Problem with this is, for this I need to figure out where is mthca.a installed.


-- 
MST



More information about the general mailing list