Mellanox / nv_peer_memory

305 stars 61 forks source link

Makefile is not robust against nv-p2p.h not being present #17

Closed drossetti closed 7 years ago

drossetti commented 7 years ago

NVIDIA ?= $(shell (find /usr/src/nvidia-* -name "nv-p2p.h"|xargs dirname))

if nv-p2p.h is not present, this line returns an obscure error:

make[1]: Entering directory /usr/src/kernels/2.6.32-642.el6.x86_64' dirname: missing operand Trydirname --help' for more information.

drossetti commented 7 years ago

take this back, this is handled by switching to a local copy (compat_nv-p2p.h)