![]() "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. ![]() To do this I had to download VC2015 (14.0) and set environment variable pointing to cl.exe file. Upon the first launch, the system may prompt you to enable the Windows optional feature.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. In this case, you need to update your WSL distribution. Note that CLion does not support legacy WSL, which you may have installed before upgrading your system to the build 16299.15 or later of Windows 10. Follow these instructions to switch the distributive. To work with WSL 2, your Windows version should be 10 build 18917 or later. See the official guide Install the Windows Subsystem for Linux for instructions. Configure WSLĭownload and install a WSL distribution (for instance, Ubuntu) from Microsoft Store.įor this step, be sure to use at least Windows 10 or later with the latest “Fall Creators Update” (minimum version 1709, build 16299.15). You don't need to install or run CLion inside WSL. With WSL toolchain set up for your project, you can build using a toolchain from Linux, and run/debug on WSL, without leaving CLion running on your Windows machine. Currently, it supports several Linux distributions, such as Ubuntu, OpenSUSE, and SLES. WSL ( WSL 2) - Windows Subsystem for Linux - is a compatibility layer for running Linux binary executables natively on Windows 10 and later.
0 Comments
Leave a Reply. |