# The NVML library location depends on driver version on Ubuntu
# Åke Sandgren, 2016-10-14
diff -ru gromacs-2016.orig/cmake/FindNVML.cmake gromacs-2016/cmake/FindNVML.cmake
--- gromacs-2016.orig/cmake/FindNVML.cmake	2016-07-09 02:55:38.000000000 +0200
+++ gromacs-2016/cmake/FindNVML.cmake	2016-10-14 21:44:08.143648879 +0200
@@ -96,7 +96,7 @@
   # reasonably set GPU_DEPLOYMENT_KIT_ROOT_DIR to the value they
   # passed to the installer, or the root where they later found the
   # kit to be installed. Below, we cater for both possibilities.
-  set( NVML_LIB_PATHS /usr/lib64 )
+  set( NVML_LIB_PATHS /usr/lib64 /usr/lib64/nvidia /usr/lib/nvidia-367 /usr/lib/nvidia-375)
   if(GPU_DEPLOYMENT_KIT_ROOT_DIR)
       list(APPEND NVML_LIB_PATHS
           "${GPU_DEPLOYMENT_KIT_ROOT_DIR}/src/gdk/nvml/lib"
