没有合适的资源?快使用搜索试试~ 我知道了~
首页infiniband rdma编程
infiniband rdma编程
5星 · 超过95%的资源 需积分: 35 289 下载量 41 浏览量
更新于2023-06-28
评论 4
收藏 914KB PDF 举报
infiniband rdma编程infiniband rdma编程infiniband rdma编程
资源详情
资源评论
资源推荐
www.mellanox.com
RDMA Aware Networks Programming
User Manual
Rev 1.2
Mellanox Technologies
350 Oakmead Parkway
Sunnyvale, CA 94085
U.S.A.
www.mellanox.com
Tel: (408) 970-3400
Fax: (408) 970-3403
Mellanox Technologies, Ltd.
PO Box 586 Hermon Building
Yokneam 20692
Israel
Tel: +972-4-909-7200
Fax: +972-4-959-3245
© Copyright 2009. Mellanox Technologies, Inc. All Rights Reserved.
Mellanox®, ConnectX®, InfiniBlast®, InfiniBridge®, InfiniHost®, InfiniRISC®, InfiniScale®, and InfiniPCI® are registered
trademarks of Mellanox Technologies, Ltd.
BridgeX, PhyX and Virtual Protocol Interconnect are trademarks of Mellanox Technologies, Ltd.
All other marks and names mentioned herein may be trademarks of their respective companies.
RDMA Aware Networks Programming User’s Manual
Document Number: 2865
Rev 1.2
Mellanox Technologies
2
NOTE:
THIS HARDWARE, SOFTWARE OR TEST SUITE PRODUCT (“PRODUCT(S)”) AND ITS RELATED DOCUMENTATION ARE PRO-
VIDED BY MELLANOX TECHNOLOGIES “AS-IS” WITH ALL FAULTS OF ANY KIND AND SOLELY FOR THE PURPOSE OF
AIDING THE CUSTOMER IN TESTING APPLICATIONS THAT USE THE PRODUCTS IN DESIGNATED SOLUTIONS. THE CUS
-
TOMER'S MANUFACTURING TEST ENVIRONMENT HAS NOT MET THE STANDARDS SET BY MELLANOX TECHNOLOGIES
TO FULLY QUALIFY THE PRODUCTO(S) AND/OR THE SYSTEM USING IT. THEREFORE, MELLANOX TECHNOLOGIES CAN
-
NOT AND DOES NOT GUARANTEE OR WARRANT THAT THE PRODUCTS WILL OPERATE WITH THE HIGHEST QUALITY.
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER-
CHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT ARE DISCLAIMED. IN NO EVENT
SHALL MELLANOX BE LIABLE TO CUSTOMER OR ANY THIRD PARTIES FOR ANY DIRECT, INDIRECT, SPECIAL, EXEM-
PLARY, OR CONSEQUENTIAL DAMAGES OF ANY KIND (INCLUDING, BUT NOT LIMITED TO, PAYMENT FOR PROCURE-
MENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY FROM THE USE OF THE PRODUCT(S) AND RELATED
DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
RDMA Aware Networks Programming User Manual Rev 1.2
Mellanox Technologies
3
Table of Contents
Table of Contents 3
Revision History 6
Glossary 7
Chapter 1 Introduction 11
1.1 Scope 11
1.2 Intended Audience 11
1.3 Online Resources 11
Chapter 2 Overview 12
2.1 Available Communication Operations 12
2.1.1 Send/Send with Immediate 12
2.1.2 Receive 12
2.1.3 RDMA read 12
2.1.4 RDMA write/RDMA write with immediate. 12
2.1.5 Atomic Fetch and Add / Atomic Compare and Swap 12
2.2 Transport modes 13
2.2.1 Reliable Connection (RC) 13
2.2.2 Reliable Datagram (RD) 13
2.2.3 Unreliable Connection (UC) 14
2.2.4 Unreliable Datagram (UD) 14
2.3 Key Concepts 15
2.3.1 Send Request (SR) 15
2.3.2 Receive Request (RR) 15
2.3.3 Completion Queue 15
2.3.4 Memory Registration 15
2.3.5 Memory Window 16
2.3.6 Address Vector 16
2.3.7 Global Routing Header (GRH) 16
2.3.8 Protection Domain 16
2.3.9 Asynchronous Events 17
2.3.10 Scatter Gather 17
2.3.11 Polling 17
2.4 Typical Application 18
2.5 Programming Example Synopsis – RDMA_RC_example 20
2.5.1 Main 20
2.5.2 print_config 21
2.5.3 resources_init 21
2.5.4 resources_create 21
2.5.5 sock_connect 21
2.5.6 connect_qp 21
2.5.7 modify_qp_to_init 22
2.5.8 post_receive 22
2.5.9 sock_sync_data 22
2.5.10 modify_qp_to_rtr 22
2.5.11 modify_qp_to_rts 22
2.5.12 post_send 22
2.5.13 poll_completion 22
2.5.14 resources_destroy 22
2.6 Programming Example Synopsis – RDMA_CM API 23
2.6.1 Multicast – RDMA_CM code example 23
Chapter 3 VPI verbs API 25
Rev 1.2
Mellanox Technologies
4
3.1 Device operations 25
3.1.1 ibv_get_device_list 25
3.1.2 ibv_free_device_list 27
3.1.3 ibv_get_device_name 28
3.1.4 ibv_get_device_guid 29
3.1.5 ibv_open_device 30
3.1.6 ibv_close_device 31
3.2 Verb context operations 32
3.2.1 ibv_query_device 32
3.2.2 ibv_query_port 35
3.2.3 ibv_query_gid 37
3.2.4 ibv_query_pkey 38
3.2.5 ibv_alloc_pd 39
3.2.6 ibv_dealloc_pd 40
3.2.7 ibv_create_cq 41
3.2.8 ibv_resize_cq 42
3.2.9 ibv_destroy_cq 43
3.2.10 ibv_create_comp_channel 44
3.2.11 ibv_destroy_comp_channel 45
3.3 Protection domain operations 46
3.3.1 ibv_reg_mr 46
3.3.2 ibv_dereg_mr 48
3.3.3 ibv_create_qp 49
3.3.4 ibv_destroy_qp 51
3.3.5 ibv_create_ah 52
3.3.6 ibv_destroy_ah 54
3.4 Queue pair bringup (ibv_modify_qp) 55
3.4.1 RESET to INIT 57
3.4.2 INIT to RTR 58
3.4.3 RTR to RTS 59
3.5 Active queue pair operations 60
3.5.1 ibv_query_qp 60
3.5.2 ibv_post_recv 61
3.5.3 ibv_post_send 63
3.5.4 ibv_req_notify_cq 65
3.5.5 ibv_get_cq_event 66
3.5.6 ibv_ack_cq_events 67
3.5.7 ibv_poll_cq 68
3.5.8 ibv_init_ah_from_wc 70
3.5.9 ibv_create_ah_from_wc 71
Chapter 4 RDMA_CM API 72
4.1 Event Channel Operations 72
4.1.1 rdma_create_event_channel 72
4.1.2 rdma_destroy_event_channel 73
4.2 Connection Manager (CM) ID Operations 74
4.2.1 rdma_create_id 74
4.2.2 rdma_destroy_id 75
4.2.3 rdma_resolve_addr 76
4.2.4 rdma_bind_addr 77
4.2.5 rdma_join_multicast 78
4.2.6 rdma_leave_multicast 79
4.2.7 rdma_create_qp 80
4.2.8 rdma_destroy_qp 81
4.3 Event Handling Operations 82
4.3.1 rdma_get_cm_event 82
4.3.2 rdma_ack_cm_event 86
4.3.3 rdma_event_str 87
Appendix A Programming Example 88
剩余124页未读,继续阅读
duankeer
- 粉丝: 1
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论26