The basic GPUDirect RDMA documentation is here. As indicated in section 4.3, building an nvidia driver linux kernel module requires various driver header files and makefiles.
These files can be accessed as follows:
- get an appropriate NVIDIA linux driver installer (.run file) such as 319.72 here
All nvidia linux driver installers have command line switch options. Basic options can be found by appending
--help
to the driver installer command string, such as:sh NVIDIA-Linux-x86_64-319.72.run --help
more advanced options can be accessed with:
sh NVIDIA-Linux-x86_64-319.72.run --advanced-options
one of the advanced options is
-x
which will only extract the driver files, it will not "install" any:sh NVIDIA-Linux-x86_64-319.72.run -x
This will create a directory where the files are available. Within this directory, the
kernel
directory has the necessary header files and a sample kernel modulemakefile
which can be used to learn appropriate libraries to link against:cd NVIDIA-Linux-x86_64-319.72/kernel