I have been working on deploying a CUDA application on my CoreOS Server. As most of CoreOS is on a read only file system I have been trying to create an Ubuntu 16.04 container with the CUDA drivers. I didnt find success with any of the dockerfiles I’ve found online. So Ive been modifying the https://github.com/emergingstack/es-dev-stack to try make it work. Ive changed to used driver version 375.26 (Included with CUDA 8). Because the issue with nvprocfs has been fixed, I commented out those lines and went for a compile. However there are errors with NV_GET_USER_PAGES_REMOTE. Apparently some problem with nv-linux.h How do I fix the errors and get the driver to run?
In file included from /opt/nvidia/nvidia_installers/NVIDIA-Linux-x86_64-375.26/kernel/common/inc/nv-linux.h:18:0,
/opt/nvidia/nvidia_installers/NVIDIA-Linux-x86_64-375.26/kernel/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
/opt/nvidia/nvidia_installers/NVIDIA-Linux-x86_64-375.26/kernel/common/inc/nv-mm.h:86:20: error: too few arguments to function ‘get_user_pages_remote’
return get_user_pages_remote(tsk, mm, start, nr_pages, flags, pages, vmas);