title: nvcc fatal : Unknown option '--threads'
body: <p>I have installed CUDA-11.3 and NVIDIA Driver Version 465, CMAKE version 3.16.3.
  I was trying to compile samples included in th toolkit to verify the installation but getting the following error.</p>
  <pre><code>make[1]: Entering directory '/home/user/NVIDIA_CUDA-11.3_Samples/0_Simple/simpleSeparateCompilation'
  /usr/local/cuda/bin/nvcc -ccbin g++ -I../../common/inc  -m64    -dc --threads 0 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_86,code=compute_86 -o simpleDeviceLibrary.o -c simpleDeviceLibrary.cu
  nvcc fatal   : Unknown option '--threads'
  make[1]: *** [Makefile:321: simpleDeviceLibrary.o] Error 1
  make[1]: Leaving directory '/home/user/NVIDIA_CUDA-11.3_Samples/0_Simple/simpleSeparateCompilation'
  make: *** [Makefile:51: 0_Simple/simpleSeparateCompilation/Makefile.ph_build] Error 2
  </code></pre>