This program uses GPUDirect RDMA to communicate between server and client GPU. Source code is created using the following code.
The environment used for the operation check is as follows. There is no guarantee that it will work in other environments.
- Server : Linux 4.10.0
- Client : Linux 4.4.64
- GPU : NVIDIA Quadro M4000
- NIC : Mellanox ConnectX-4 VPI
- NVIDIA GPU driver 375.66
- CUDA 8.0.61
- Mellanox OFED 4.1
- nvidia-peer-memory 1.0.7
First, run the following command on the two hosts.
After command execution,
rdma_client are created.
Second, run the following command on the server.
$ ./rdma_server [-a <server_addr>] [-p <server_port>]
Third, run the following command on the client.
$ ./rdma_client [-a <server_addr>] [-p <server_port>]