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

Michael S. Tsirkin mst at mellanox.co.il
Wed Jun 22 05:07:44 PDT 2005


Quoting r. Michael S. Tsirkin <mst at mellanox.co.il>:
> Subject: Re: [PATCH] rdma_lat-09 and results
> 
> 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

OK, I just tried that on your machine. You just have to replace
/use/local/lib with /usr/lib.

It links fine and starts running.
There's some issue with the stack which results in

$ ibv_pingpong
Couldn't get context for mthca0

but that's probably some setup issue you'll be able to
figure out.


Roland, is there some way to get the plugin
directory out of the libibverbs library?
Thanks,

-- 
MST



More information about the general mailing list