Cuda compilation problems related to struct cudaDeviceProp managed memory attribs.

I have trouble compiling when trying to use cudaDeviceProps structure.
pageableMemoryAccess, concurrentManagedAccess, managedMemSupported.

I’ve checked the include file cuda_runtime_api.h it’s not flagged !

Environment :

– The C compiler identification is GNU 5.4.0
– The CXX compiler identification is GNU 5.4.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Checking for module ‘dbus-1’
– Found dbus-1, version 1.10.6
– Checking for module ‘glib-2.0’
– Found glib-2.0, version 2.48.1
– Checking for module ‘gio-2.0’
– Found gio-2.0, version 2.48.1
– Checking for module ‘gio-unix-2.0’
– Found gio-unix-2.0, version 2.48.1
– Checking for module ‘mysqlclient’
– Found mysqlclient, version 20.3.3
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found CUDA: /usr (found version “8.0”)
– PROJECT_BINARY_DIR: /home/jmo/svn-cuda-sample/build PROJECT_SOURCE_DIR /home/jmo/svn-cuda-sample
– Configuring done
– Generating done
– Build files have been written to: /home/jmo/svn-cuda-sample/build

Compilation ERROR LOG :

[ 20%] Building C object CUDA_MODULE/CMakeFiles/cuda_module_api.dir/cuda_module.c.o
cd /home/jmo/svn-cuda-sample/build/CUDA_MODULE && /usr/bin/cc -I/home/jmo/svn-cuda-sample/build -I/home/jmo/svn-cuda-sample/includes -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/jmo/svn-cuda-sample/CUDA_MODULE -I/home/jmo/svn-cuda-sample/build/CUDA_MODULE -o CMakeFiles/cuda_module_api.dir/cuda_module.c.o -c /home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module.c
In file included from /home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module.c:41:0:
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module_internal.h:143:8: warning: extra tokens at end of #ifdef directive
if (capaCuda.pageableMemoryAccess)
^
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module.c: In function ‘CUDA_MODULE_Init_Cuda_GPU’:
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module_internal.h:195:20: error: ‘struct cudaDeviceProp’ has no member named ‘pageableMemoryAccess’
if (capaCuda.pageableMemoryAccess)
^
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module.c:145:5: note: in expansion of macro ‘CUDA_MODULE_DEVICE_CAPA_UPDATE’
CUDA_MODULE_DEVICE_CAPA_UPDATE(cudaDeviceProp, cudaDevCaps);
^
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module_internal.h:201:20: error: ‘struct cudaDeviceProp’ has no member named ‘concurrentManagedAccess’
if (capaCuda.concurrentManagedAccess)
^
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module.c:145:5: note: in expansion of macro ‘CUDA_MODULE_DEVICE_CAPA_UPDATE’
CUDA_MODULE_DEVICE_CAPA_UPDATE(cudaDeviceProp, cudaDevCaps);
^
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module_internal.h:207:20: error: ‘struct cudaDeviceProp’ has no member named ‘managedMemSupported’
if (capaCuda.managedMemSupported)
^
/home/jmo/svn-cuda-sample/CUDA_MODULE/cuda_module.c:145:5: note: in expansion of macro ‘CUDA_MODULE_DEVICE_CAPA_UPDATE’
CUDA_MODULE_DEVICE_CAPA_UPDATE(cudaDeviceProp, cudaDevCaps);
^
CUDA_MODULE/CMakeFiles/cuda_module_api.dir/build.make:186: recipe for target ‘CUDA_MODULE/CMakeFiles/cuda_module_api.dir/cuda_module.c.o’ failed