Closed hanyunfan closed 3 years ago
If you get peer_mem.h from MOFED and copy it into the Linux' include/rdma, you can build the module. Unfortunately the result needs MOFED to run. When you load it, you'll see it needs symbols from ib_core which aren't in the kernel.org RDMA support (or added to RHEL, SUSE, or Debian).
[root@node008 nv_peer_memory]# rpmbuild --rebuild /tmp/nvidia_peer_memory-1.1-0.src.rpm Installing /tmp/nvidia_peer_memory-1.1-0.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iaPxvC
include <rdma/peer_mem.h>
compilation terminated. make[2]: [scripts/Makefile.build:319: /usr/src/redhat/BUILD/nvidia_peer_memory-1.1/nv_peer_mem.o] Error 1 make[1]: [Makefile:1542: module/usr/src/redhat/BUILD/nvidia_peer_memory-1.1] Error 2 make[1]: Leaving directory '/usr/src/kernels/4.18.0-193.el8.x86_64' make: *** [Makefile:73: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.Hl8cnN (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Hl8cnN (%build) [root@node008 nv_peer_memory]# uname -a Linux node008 4.18.0-193.el8.x86_64 #1 SMP Fri May 8 10:59:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux [root@node008 nv_peer_memory]#