Open Goru1890 opened 3 years ago
OK,I met some same problems. the environment is cuda10.0 vs2017.
At first, it just come with CMAKE_CUDA_COMPILER "NOT FOUND" and CMake is not able to find CUDA on your system using the new enable_language(CUDA)
. I viewed the issues about it.
Then, I reinstalled cuda10.0 with "Visual Studio Integration".
But, it get another question.
Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
The CUDA compiler identification is unknown
Detecting CUDA compiler ABI info
CMake Error in E:/Yolo/darknet-master/CMakeFiles/CMakeTmp/CMakeLists.txt:
CUDA_ARCHITECTURES is empty for target "cmTC_34a1b".
CMake Error in E:/Yolo/darknet-master/CMakeFiles/CMakeTmp/CMakeLists.txt:
CUDA_ARCHITECTURES is empty for target "cmTC_34a1b".
CMake Error in E:/Yolo/darknet-master/CMakeFiles/CMakeTmp/CMakeLists.txt:
CUDA_ARCHITECTURES is empty for target "cmTC_34a1b".
CMake Error in E:/Yolo/darknet-master/CMakeFiles/CMakeTmp/CMakeLists.txt:
CUDA_ARCHITECTURES is empty for target "cmTC_34a1b".
CMake Error at D:/cmake-3.19.7-win64-x64/share/cmake-3.19/Modules/CMakeDetermineCompilerABI.cmake:48 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
D:/cmake-3.19.7-win64-x64/share/cmake-3.19/Modules/CMakeTestCUDACompiler.cmake:19 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:94 (enable_language)
Configuring incomplete, errors occurred!
See also "E:/Yolo/darknet-master/CMakeFiles/CMakeOutput.log".
See also "E:/Yolo/darknet-master/CMakeFiles/CMakeError.log".
I viewed CMakeError.log, and have no idea with it.
When I try to compile darknet on windows I have the error explained in the title.
Doesn't make sense to me, I have already cuda installed on my pc
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe
I have the path
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin
onPath
enviroment variables.I also tryed to build the project with
build.ps1
but I'm having the same issue.