cuda make sample 7_CUDALibraries Undefined reference to 'cudaLaunch'

Hello,

I followed the instruction on
https://xcat-docs.readthedocs.io/en/stable/advanced/gpu/nvidia/verify_cuda_install.html
and try to verify my CUDA installation. however, when I trying to run make on the samples it gives me the following error:

collect2: error: ld returned 1 exit status
Makefile:280: recipe for target 'conjugateGradient' failed
make[1]: *** [conjugateGradient] Error 1
make[1]: Leaving directory '/usr/local/cuda-10.1/samples/7_CUDALibraries/conjugateGradient'
Makefile:51: recipe for target '7_CUDALibraries/conjugateGradient/Makefile.ph_build' failed
make: *** [7_CUDALibraries/conjugateGradient/Makefile.ph_build] Error 2

Other information:
NVRM version: NVIDIA UNIX x86_64 Kernel Module 418.87.01 Wed Sep 25 06:00:38 UTC 2019
GCC version: gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

Please help,

Thanks,

John