rdma example: https://github.com/animeshtrivedi/rdma-example
- 寒武纪使用clang编译
apt install clang
- 每个品牌的动态库要配置好到环境变量生效
# mlu
export LD_LIBRARY_PATH=/usr/local/neuware/lib64:$LD_LIBRARY_PATH
cmake -S . -B build
cmake --build build
cd src/cuda
make all
make clean
bash clean.sh
./cuda_rdma_server
./cuda_rdma_client -a 192.168.2.253 -s textstring
./rocm_rdma_server
./rocm_rdma_client -a 192.168.2.245 -s textstring
./cnnl_rdma_server
./cnnl_rdma_client -a 192.168.2.249 -s textstring
source /opt/dtk/env.sh
source /opt/dtk-23.10.1/env.sh
dtk-22.10.1-vdcu