Help, CUDA found but The CUDA compiler identification is unknown. previous solutions not work
Hello. I'm trying to build darknet in windows using cmake 3.21.3 and visual Studio 2019.
I first installed cuda 11.4 with cudnn but cmake said CUDA not found. 1 day searching and apply many solutions did not fix. So I thought it's because of cuda 11.4 that's new and not supported. I uninstalled cuda 11.4 and installed cuda 10.2 and installed cudnn suitable for 10.2.
Just 1 progress appeared! it found cuda but again in Errorlog: "The CUDA compiler identification is unknown". I tried many solution like this: #21862 (closed) I installed cuda with all boxes being checked :(
I face this. I should mention I have set CUDACXX manually in my system environment. I will attach cmakeList and CheckCUDA error too.
Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2 (found version "10.2")
Looking for a CUDA compiler
Looking for a CUDA compiler - NOTFOUND
CUDA_PATH: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2
CUDACXX: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe
CMake Error at CMakeLists.txt:154 (message):
CUDA not found, please build explicitly with -DENABLE_CUDA=OFF if you do
not want CUDA.
project/cmakeList: CMakeLists.txt
project/CMakeFiles/CMakeOutput: CMakeOutput.log
project/CMakeFiles/CheckCUDA/CMakeFiles/CMakeError: CMakeError.log