Problem installing nvidia_peer_memory kernel driver on Ubuntu

Hello,

I am using Ubuntu 16.04. I am trying to install nvidia_peer_memory kernel driver: I downloaded nvidia_peer_memory-1.0-2.tar.gz from your site and followed instructions from README.txt:


To install on Ubuntu run:
copy tarball to temp directory.
tar xzf
cd
dpkg-buildpackage -us -uc
dpkg -i

The last command fails:

dpkg -i nvidia-peer-memory-dkms_1.0-2_all.deb

Selecting previously unselected package nvidia-peer-memory-dkms.
(Reading database … 229808 files and directories currently installed.)
Preparing to unpack nvidia-peer-memory-dkms_1.0-2_all.deb …
Unpacking nvidia-peer-memory-dkms (1.0-2) …
Setting up nvidia-peer-memory-dkms (1.0-2) …

Creating symlink /var/lib/dkms/nvidia-peer-memory/1.0/source ->
/usr/src/nvidia-peer-memory-1.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make KERNELRELEASE=4.4.0-45-generic all KVER=4.4.0-45-generic KDIR=/lib/modules/4.4.0-45-generic/build…(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.4.0-45-generic (x86_64)
Consult /var/lib/dkms/nvidia-peer-memory/1.0/build/make.log for more information.
modprobe: FATAL: Module nv_peer_mem not found in directory /lib/modules/4.4.0-45-generic

cat /var/lib/dkms/nvidia-peer-memory/1.0/build/make.log

DKMS make.log for nvidia-peer-memory-1.0 for kernel 4.4.0-45-generic (x86_64)
Sat Nov 26 13:50:49 MSK 2016
/var/lib/dkms/nvidia-peer-memory/1.0/build/create_nv.symvers.sh 4.4.0-45-generic
Getting symbol versions from /lib/modules/4.4.0-45-generic/updates/dkms/nvidia_367.ko …
Created: nv.symvers
Found /usr/src/nvidia-367-367.57/nvidia/nv-p2p.h
/bin/cp -f /usr/src/nvidia-367-367.57/nvidia/nv-p2p.h /var/lib/dkms/nvidia-peer-memory/1.0/build/nv-p2p.h
cp -rf /Module.symvers .
cp: cannot stat ‘/Module.symvers’: No such file or directory
Makefile:49: recipe for target ‘all’ failed
make: *** [all] Error 1

What am I doing wrong?

Thanks in advance.

Where exactly (which site address) did you download this from?

Oh. I am sorry! It was Melanox website:
http://www.mellanox.com/page/products_dyn?product_family=116&mtag=gpudirect

If there is better way to obtain nv_peer_mem kernel driver, please let me know.

I solved this problem by installing MLNX_OFED 3.1

nv_peer_men Systems Requirements:
Mellanox OFED v3.1 or later for:
Connect-IB/ConnectX-3/ConnectX-3 Pro/ConnectX-4 and ConnectX-5