Recompile nv-modeset-kernel.o_binary and nv-kernel.o_binary

We are trying to integrate a Xeon CPU with the NVIDIA 1030 GPU (16 lanes PCIe interface) and are having some troubles with the following 2 CUDA binary packages and want to recompile them:

  • nv-modeset-kernel.o_binary
  • nv-kernel.o_binary

Both of these packages are built using the build option -mcmodel=kernel.

Could you please help tell us how to rebuild these modules with the option -mcmodel=large?

nVidia drivers version 384.81 with CUDA Toolkit 9