[ofa-general] uDAPL libdat2.so version # problem for today's OFED code

Arlin Davis ardavis at ichips.intel.com
Thu Feb 21 09:40:38 PST 2008


Tang, Changqing wrote:
> Arlin:
>         Here is another question.
> 
> The /etc/dat.conf is:
> OpenIB-cma u1.2 nonthreadsafe default libdaplcma.so.1 dapl.1.2 "ib0 0" ""
> OpenIB-cma-1 u1.2 nonthreadsafe default libdaplcma.so.1 dapl.1.2 "ib1 0" ""
> ofa-v2-ib0 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "ib0 0" ""
> ofa-v2-ib1 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "ib1 0" ""
> 
>         A simple code just call dat_registry_list_prodivers() to get the list
> in /etc/dat.conf, and call dat_ia_openv() in a loop of above list. If I compile
> and link this code with /usr/include/dat2 and libdat2.so,  dat_ia_openv() return
> DAT_SUCCESS for all four entries.

You should be using the dat_ia_open and not the dat_ia_openv. You are 
setting the MAJOR and MINOR versions according to the query and not
based on your build so the open always return's SUCCESS.

see dat.h for definition:

#define dat_ia_open(name, qlen, async_evd, ia) \
	dat_ia_openv((name), (qlen), (async_evd), (ia), \
		DAT_VERSION_MAJOR, DAT_VERSION_MINOR, \
		DAT_THREADSAFE)

-arlin





More information about the general mailing list