Fish_In_A_SUit

CMakePresets CUDA CMake Error

Feb 12th, 2023 (edited)
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.06 KB | Software | 0 0
  1. [driver] Switching to configure preset: ConfigurePreset-CUDA
  2. [driver] Switching to build preset: BuildPreset-CUDA
  3. [main] Building folder: CUDA_Simple_Example
  4. [main] Configuring project: CUDA_Simple_Example
  5. [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=C:/msys64/mingw64/bin/gcc.exe -DCMAKE_CXX_COMPILER=C:/msys64/mingw64/bin/g++.exe -DCMAKE_INSTALL_PREFIX=C:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/install/ConfigurePreset-CUDA -DCMAKE_TOOLCHAIN_FILE:FILEPATH=C:/Aljosa/Development/Unity-Github/vcpkg/scripts/buildsystems/vcpkg.cmake "-DCMAKE_CUDA_COMPILER=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.0/bin/nvcc.exe" -SC:/Aljosa/Development/Unity-Github/CUDA_Simple_Example -BC:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/build/ConfigurePreset-CUDA -G Ninja
  6. [cmake] -- The CXX compiler identification is GNU 12.1.0
  7. [cmake] -- The CUDA compiler identification is NVIDIA 12.0.140
  8. [cmake] -- Detecting CXX compiler ABI info
  9. [cmake] -- Detecting CXX compiler ABI info - done
  10. [cmake] -- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe - skipped
  11. [cmake] -- Detecting CXX compile features
  12. [cmake] -- Detecting CXX compile features - done
  13. [cmake] -- Detecting CUDA compiler ABI info
  14. [cmake] -- Detecting CUDA compiler ABI info - failed
  15. [cmake] -- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.0/bin/nvcc.exe
  16. [cmake] -- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.0/bin/nvcc.exe - broken
  17. [cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/CMakeTestCUDACompiler.cmake:103 (message):
  18. [cmake] The CUDA compiler
  19. [cmake]
  20. [cmake] "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.0/bin/nvcc.exe"
  21. [cmake]
  22. [cmake] is not able to compile a simple test program.
  23. [cmake]
  24. [cmake] It fails with the following output:
  25. [cmake]
  26. [cmake] Change Dir: C:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/build/ConfigurePreset-CUDA/CMakeFiles/CMakeScratch/TryCompile-q8w9rf
  27. [cmake]
  28. [cmake] Run Build Command(s):C:/msys64/mingw64/bin/ninja.exe cmTC_35ec2 && [1/2] Building CUDA object CMakeFiles\cmTC_35ec2.dir\main.cu.obj
  29. [cmake] main.cu
  30. [cmake] tmpxft_0000be00_00000000-10_main.cudafe1.cpp
  31. [cmake] [2/2] Linking CUDA executable cmTC_35ec2.exe
  32. [cmake] FAILED: cmTC_35ec2.exe
  33. [cmake] cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_35ec2.dir --rc=C:\msys64\mingw64\bin\windres.exe --mt="" --manifests -- C:\msys64\mingw64\bin\ld.exe /nologo CMakeFiles\cmTC_35ec2.dir\main.cu.obj /out:cmTC_35ec2.exe /implib:cmTC_35ec2.lib /pdb:cmTC_35ec2.pdb /version:0.0 /debug /INCREMENTAL cudadevrt.lib cudart_static.lib 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/v12.0/lib/x64" && cmd.exe /C "cd /D C:\Aljosa\Development\Unity-Github\CUDA_Simple_Example\out\build\ConfigurePreset-CUDA\CMakeFiles\CMakeScratch\TryCompile-q8w9rf && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file C:/Aljosa/Development/Unity-Github/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary C:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/build/ConfigurePreset-CUDA/CMakeFiles/CMakeScratch/TryCompile-q8w9rf/cmTC_35ec2.exe -installedDir C:/Aljosa/Development/Unity-Github/vcpkg/installed/x64-windows/debug/bin -OutVariable out""
  34. [cmake] RC Pass 1: command "C:\msys64\mingw64\bin\windres.exe /fo CMakeFiles\cmTC_35ec2.dir/manifest.res CMakeFiles\cmTC_35ec2.dir/manifest.rc" failed (exit code 1) with the following output:
  35. [cmake] Usage: C:\msys64\mingw64\bin\windres.exe [option(s)] [input-file] [output-file]
  36. [cmake] The options are:
  37. [cmake] -i --input=<file> Name input file
  38. [cmake] -o --output=<file> Name output file
  39. [cmake] -J --input-format=<format> Specify input format
  40. [cmake] -O --output-format=<format> Specify output format
  41. [cmake] -F --target=<target> Specify COFF target
  42. [cmake] --preprocessor=<program> Program to use to preprocess rc file
  43. [cmake] --preprocessor-arg=<arg> Additional preprocessor argument
  44. [cmake] -I --include-dir=<dir> Include directory when preprocessing rc file
  45. [cmake] -D --define <sym>[=<val>] Define SYM when preprocessing rc file
  46. [cmake] -U --undefine <sym> Undefine SYM when preprocessing rc file
  47. [cmake] -v --verbose Verbose - tells you what it's doing
  48. [cmake] -c --codepage=<codepage> Specify default codepage
  49. [cmake] -- Configuring incomplete, errors occurred!
  50. [cmake] See also "C:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/build/ConfigurePreset-CUDA/CMakeFiles/CMakeOutput.log".
  51. [cmake] See also "C:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/build/ConfigurePreset-CUDA/CMakeFiles/CMakeError.log".
  52. [cmake] -l --language=<val> Set language when reading rc file
  53. [cmake] --use-temp-file Use a temporary file instead of popen to read
  54. [cmake] the preprocessor output
  55. [cmake] --no-use-temp-file Use popen (default)
  56. [cmake] -r Ignored for compatibility with rc
  57. [cmake] @<file> Read options from <file>
  58. [cmake] -h --help Print this help message
  59. [cmake] -V --version Print version information
  60. [cmake] FORMAT is one of rc, res, or coff, and is deduced from the file name
  61. [cmake] extension if not specified. A single file name is an input file.
  62. [cmake] No input-file is stdin, default rc. No output-file is stdout, default rc.
  63. [cmake] C:\msys64\mingw64\bin\windres.exe: supported targets: pe-x86-64 pei-x86-64 pe-bigobj-x86-64 elf64-x86-64 elf64-l1om elf64-k1om pe-i386 pei-i386 elf32-i386 elf32-iamcu elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
  64. [cmake] ninja: build stopped: subcommand failed.
  65. [cmake]
  66. [cmake]
  67. [cmake]
  68. [cmake]
  69. [cmake]
  70. [cmake] CMake will not be able to correctly generate this project.
  71. [cmake] Call Stack (most recent call first):
  72. [cmake] CMakeLists.txt:2 (project)
  73. [cmake]
  74. [cmake]
  75. [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=C:/msys64/mingw64/bin/gcc.exe -DCMAKE_CXX_COMPILER=C:/msys64/mingw64/bin/g++.exe -DCMAKE_INSTALL_PREFIX=C:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/install/ConfigurePreset-CUDA -DCMAKE_TOOLCHAIN_FILE:FILEPATH=C:/Aljosa/Development/Unity-Github/vcpkg/scripts/buildsystems/vcpkg.cmake "-DCMAKE_CUDA_COMPILER=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.0/bin/nvcc.exe" -SC:/Aljosa/Development/Unity-Github/CUDA_Simple_Example -BC:/Aljosa/Development/Unity-Github/CUDA_Simple_Example/out/build/ConfigurePreset-CUDA -G Ninja exited with code: 1
Add Comment
Please, Sign In to add comment