error , when testing cuDNN samples with cuda9-2,cudnn 7-7,nvidia-

when I excute :
~/cudnn_samples_v7/mnistCUDNN# make clean && make

print these:

/usr/local/cuda/bin/nvcc -ccbin g++ -I/usr/local/cuda/include -IFreeImage/include -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_53,code=compute_53 -o fp16_dev.o -c fp16_dev.cu
g++ -I/usr/local/cuda/include -IFreeImage/include -o fp16_emu.o -c fp16_emu.cpp
g++ -I/usr/local/cuda/include -IFreeImage/include -o mnistCUDNN.o -c mnistCUDNN.cpp
In file included from /usr/local/cuda/include/channel_descriptor.h:62:0,
from /usr/local/cuda/include/cuda_runtime.h:90,
from /usr/include/cudnn.h:64,
from mnistCUDNN.cpp:30:
/usr/local/cuda/include/cuda_runtime_api.h:1699:101: error: use of enum ‘cudaDeviceP2PAttr’ without previous declaration
extern host cudart_builtin cudaError_t CUDARTAPI cudaDeviceGetP2PAttribute(int *value, enum cudaDeviceP2
^
/usr/local/cuda/include/cuda_runtime_api.h:2947:102: error: use of enum ‘cudaFuncAttribute’ without previous declaration
extern host cudart_builtin cudaError_t CUDARTAPI cudaFuncSetAttribute(const void *func, enum cudaFuncAtt