Mellanox / nv_peer_memory

292 stars 60 forks source link

Unable to install nv_peer_mem on CentOS 8.2 /usr/src/redhat/BUILD/nvidia_peer_memory-1.1/nv_peer_mem.c:46:10: fatal error: rdma/peer_mem.h: No such file or directory #86

Closed hanyunfan closed 3 years ago

hanyunfan commented 3 years ago

[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

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]#

loveshack commented 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).