This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <rdma/fabric.h> | |
#include <rdma/fi_eq.h> | |
#include <rdma/fi_endpoint.h> | |
#include <rdma/fi_cm.h> | |
#include <rdma/fi_errno.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hints = fi_allocinfo(); | |
hints->ep_attr->type = FI_EP_RDM; | |
hints->caps = FI_MSG; | |
fi_getinfo(FI_VERSION(1, 1), "0.0.0.0", "12345, FI_SOURCE, hints, &socket->fi); | |
fi_fabric(socket->fi->fabric_attr, &socket->fabric, &socket->prov_ctx); | |
fi_domain(socket->fabric, socket->fi, &socket->domain, &socket->prov_ctx); | |
fi_endpoint(socket->domain, socket->fi, &socket->ep, &socket->prov_ctx); | |
struct fi_av_attr av_attr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ibv_devinfo | |
hca_id: mlx5_1 | |
transport: InfiniBand (0) | |
fw_ver: 16.21.2010 | |
node_guid: ec0d:9a03:008e:b989 | |
sys_image_guid: ec0d:9a03:008e:b988 | |
vendor_id: 0x02c9 | |
vendor_part_id: 4121 | |
hw_ver: 0x0 | |
board_id: MT_0000000013 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc test.c -o test -l fabric -g -O0 | |
$ $ FI_PROVIDER=verbs ./test | |
error: fi_getinfo failed: -61 'No data available' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <rdma/fabric.h> | |
#include <rdma/fi_eq.h> | |
#include <rdma/fi_endpoint.h> | |
#include <rdma/fi_cm.h> | |
#include <rdma/fi_errno.h> | |
#include <string.h> | |
#include <netinet/in.h> | |
#include <netdb.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <rdma/fabric.h> | |
#include <rdma/fi_eq.h> | |
#include <rdma/fi_endpoint.h> | |
#include <rdma/fi_cm.h> | |
#include <rdma/fi_errno.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <rdma/fabric.h> | |
#include <rdma/fi_eq.h> | |
#include <rdma/fi_endpoint.h> | |
#include <rdma/fi_cm.h> | |
#include <rdma/fi_errno.h> |