[ofa-general] uDAPL libdat2.so version # problem for today's OFED code
Tang, Changqing
changquing.tang at hp.com
Thu Feb 7 12:42:20 PST 2008
HI,
I downloaded today's tarball and installed. But both libdat.so and libdat2.so report version 1.2
below is the code I used to test:
#include <stdio.h>
#include <stdlib.h>
#include <dat2/udat.h> // <dat/udat.h> if linking with libdat.so
int
main()
{
int i;
DAT_RETURN err;
DAT_COUNT nif;
DAT_PROVIDER_INFO *list[10];
DAT_PROVIDER_INFO interface[10];
nif = 10;
for (i = 0; i < nif; i++) {
list[i] = &(interface[i]);
}
err = dat_registry_list_providers(nif, &nif, list);
if (err != DAT_SUCCESS) {
fprintf(stderr, "dat_registry_list_providers() failed\n");
return (-1);
}
if (nif < 1) {
fprintf(stderr, "no interface found\n");
return (-1);
}
fprintf(stderr, "version: %d.%d\n",
interface[0].dapl_version_major,
interface[0].dapl_version_minor);
}
More information about the general
mailing list