Looking for the right NVCC version compatible with CUDA 10.0

Hi,

I am a developer and I am new to CUDA and Deep Learning.
I am trying to build and run a Deep Learning repository.

While building the repository I got the Following error:
4 errors detected in the compilation of “/tmp/tmpxft_00004837_00000000-7_ROIAlign_cuda.cpp1.ii”.
error: command ‘/usr/bin/nvcc’ failed with exit status 2

Then I searched for the versions of the exiting packages and found:
CUDA version: 10.0
NVCC version: 7.5
gcc version: 5.4.0

Command used for checking NVCC version:
$nvcc --version
Copyright © 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

Some of my colleagues told me that the version of NVCC is very old for CUDA 10.0. Can somebody please suggest how to find the compatible NVCC version for CUDA 10.0? and also How to upgrade NVCC(if necessary)?
Are there any side-effects of upgrading NVCC(if any)?

Thanks so much for your help.

Hi everyone,
Is there any way to separately install/upgrade NVCC, or it is installed with CUDA only? Please suggest.
Thanks.

nvcc is part of the cuda toolkit - if you did a complete installation of cuda toolkit 10.0, you should have nvcc in one of your folders - run locate nvcc and see if you have it on different paths, if yes, change your PATH env variable.

Thank you so much for your reply @FangQ.
I followed these steps and it worked.
Now, I am able to build the repository, and I could clearly see while running the training it is using the GPU, using “nvidia-smi -l” command.
Thanks again.