
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/bin/nvcc.exe"

Mingw32-make.exe: *** Error 2ĬMake will not be able to correctly generate this project.The CUDA compiler is not able to compile a simple test program. Mingw32-make.exe: Leaving directory 'C:/c++/cuda_ts0/cmake-build-debug/CMakeFiles/CMakeTmp' The system cannot find the file specifiedmingw32-make.exe: *** Error -1
#Clion cuda code#
RC Pass 1: command "rc /foCMakeFiles\cmTC_6a6fd.dir/manifest.res CMakeFiles\cmTC_6a6fd.dir/manifest.rc" failed (exit code 0) with the following output: "C:\Program Files\IDE\CLion_2018.1.2\bin\cmake\bin\cmake.exe" -E vs_link_exe -intdir=CMakeFiles\cmTC_6a6fd.dir -manifests - link /nologo CMakeFiles/cmTC_6a6fd.dir/main.cu.obj CMakeFiles\cmTC_6a6fd.dir\cmake_device_link.obj /out:cmTC_6a6fd.exe /implib:cmTC_6a6fd.lib /pdb:C:\c++\cuda_ts0\cmake-build-debug\CMakeFiles\CMakeTmp\cmTC_6a6fd.pdb /version:0.0 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib -LIBPATH:"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1/lib/圆4" "cudadevrt.lib" "cudart_static.lib" "C:\Program Files\IDE\CLion_2018.1.2\bin\cmake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_6a6fd.dir\link.txt -verbose=1 "C:\Program Files\IDE\CLion_2018.1.2\bin\cmake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_6a6fd.dir\dlink.txt -verbose=1Ĭ:\PROGRA~1\NVIDIA~2\CUDA\v9.1\bin\nvcc.exe -D_WINDOWS -Xcompiler="/W3 /GR /EHsc" -Xcompiler="-MDd -Zi -Ob0 -Od /RTC1" -Wno-deprecated-gpu-targets -shared -dlink CMakeFiles/cmTC_6a6fd.dir/main.cu.obj -o CMakeFiles\cmTC_6a6fd.dir\cmake_device_link.obj kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib -Xcompiler=-FdC:\c++\cuda_ts0\cmake-build-debug\CMakeFiles\CMakeTmp\CMakeFiles\cmTC_6a6fd.dir\,-FS Linking CUDA device code CMakeFiles\cmTC_6a6fd.dir\cmake_device_link.obj Mingw32-make.exe: Entering directory 'C:/c++/cuda_ts0/cmake-build-debug/CMakeFiles/CMakeTmp'īuilding CUDA object CMakeFiles/cmTC_6a6fd.dir/main.cu.objĬ:\PROGRA~1\NVIDIA~2\CUDA\v9.1\bin\nvcc.exe -D_WINDOWS -Xcompiler="/W3 /GR /EHsc" -Xcompiler="-MDd -Zi -Ob0 -Od /RTC1" -x cu -c C:\c++\cuda_ts0\cmake-build-debug\CMakeFiles\CMakeTmp\main.cu -o CMakeFiles\cmTC_6a6fd.dir\main.cu.obj -Xcompiler=-FdCMakeFiles\cmTC_6a6fd.dir/,-FS Run Build Command:"C:/mingw/mingw64/bin/mingw32-make.exe" "cmTC_6a6fd/fast"Ĭ:/mingw/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_6a6fd.dir\build.make CMakeFiles/cmTC_6a6fd.dir/build Is not able to compile a simple test program.Ĭhange Dir: C:/c++/cuda_ts0/cmake-build-debug/CMakeFiles/CMakeTmp "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1/bin/nvcc.exe" Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1/bin/nvcc.exe - brokenĬMake Error at C:/Program Files/IDE/CLion_2018.1.2/bin/cmake/share/cmake-3.10/Modules/CMakeTestCUDACompiler.cmake:46 (message): Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1/bin/nvcc.exe

Check for working CXX compiler: C:/mingw/mingw64/bin/g++.exe - works Check for working CXX compiler: C:/mingw/mingw64/bin/g++.exe The CUDA compiler identification is NVIDIA 9.1.85 The CXX compiler identification is GNU 7.2.0 "C:\Program Files\IDE\CLion_2018.1.2\bin\cmake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\c++\cuda_ts0 Ok, but now I would like to compile my CUDA code with CMake.

#Clion cuda download#
To do this I had to download VC2015 (14.0) and set environment variable pointing to cl.exe file.
#Clion cuda windows#
After hours, I've finally managed to get NVCC working from console.Īnd by this I mean that if I just open windows console and type "nvcc main.cu", it works and I'm getting output file.
