[libfabric-users] address size

Biddiscombe, John A. john.biddiscombe at cscs.ch
Fri Mar 3 03:03:56 PST 2023


Apologies. more googling shows it is returned by fi_getname in the addrlen field.


JB


________________________________
From: Biddiscombe, John A.
Sent: 03 March 2023 11:59
To: libfabric-users at lists.openfabrics.org
Subject: address size


when using native address formats, I have the following hardcoded into my stuff


#ifdef HAVE_LIBFABRIC_GNI
#define HAVE_LIBFABRIC_LOCALITY_SIZE 48
#endif

#ifdef HAVE_LIBFABRIC_CXI
#define HAVE_LIBFABRIC_LOCALITY_SIZE 4
#endif

#if defined(HAVE_LIBFABRIC_VERBS) || defined(HAVE_LIBFABRIC_TCP) ||                                \
    defined(HAVE_LIBFABRIC_SOCKETS) || defined(HAVE_LIBFABRIC_PSM2)
#define HAVE_LIBFABRIC_LOCALITY_SIZE 16
#define HAVE_LIBFABRIC_LOCALITY_SOCKADDR
#endif


I want to use amazon EFA, and have no idea how large an address struct is with FI_ADDR_EFA

What is the correct way to find this info so that addresses can be safely copied around when compiling against different providers?


Thanks


JB


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/libfabric-users/attachments/20230303/ada5dd73/attachment.htm>


More information about the Libfabric-users mailing list