CUDA: cmake-gui-3.21.3 crashes while generating VTK build project with Visual Studio 17 2022 Generator
I don't know if the problem is on my end or not or maybe from the generator I'm using. I am not expert enough to tell.
but cmake-gui
crashes when generating the VTK
build project for Visual Studio 2022
with CUDA
support enabled.
the crash happens when I enable the VTK_USE_CUDA
option and then subsequently have to supply the CMAKE_VS_PLATFORM_TOOLSET_CUDA
path and CMAKE_CUDA_COMPILER
filepath.
After configuring with the said options cmake first crashes during the Configuration Phase, but when I re-open cmake it reloads the cache and Hitting Configure the second time will Succeed, But cmake will simply crash with no errors after each try to generate the project.
Setup:
- cmake = 3.21.3
- CUDA = 10.1
- Visual Studio 17 2022
- Windows 10 x64
- NVIDIA GPU
initial cmake output:
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
The C compiler identification is MSVC 19.30.30704.0
The CXX compiler identification is MSVC 19.30.30704.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: F:/Programming/vs2022/VC/Tools/MSVC/14.30.30704/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: F:/Programming/vs2022/VC/Tools/MSVC/14.30.30704/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Could not use git to determine source version, using version
Performing Test VTK_REQUIRE_LARGE_FILE_SUPPORT
Performing Test VTK_REQUIRE_LARGE_FILE_SUPPORT - Failed
Checking whether wstring is available
Checking whether wstring is available - yes
Checking whether C compiler has ptrdiff_t in stddef.h
Checking whether C compiler has ptrdiff_t in stddef.h - yes
Checking whether C compiler has ssize_t in unistd.h
Checking whether C compiler has ssize_t in unistd.h - no
Checking whether C compiler has clock_gettime
Checking whether C compiler has clock_gettime - no
Checking whether CXX compiler has setenv
Checking whether CXX compiler has setenv - no
Checking whether CXX compiler has unsetenv
Checking whether CXX compiler has unsetenv - no
Checking whether CXX compiler has environ in stdlib.h
Checking whether CXX compiler has environ in stdlib.h - yes
Checking whether CXX compiler has utimes
Checking whether CXX compiler has utimes - no
Checking whether CXX compiler has utimensat
Checking whether CXX compiler has utimensat - no
Checking whether CXX compiler struct stat has st_mtim member
Checking whether CXX compiler struct stat has st_mtim member - no
Checking whether CXX compiler struct stat has st_mtimespec member
Checking whether CXX compiler struct stat has st_mtimespec member - no
Looking for include files sys/types.h, ifaddrs.h
Looking for include files sys/types.h, ifaddrs.h - not found
Looking for GetProcessMemoryInfo
Looking for GetProcessMemoryInfo - found
Checking whether CXX compiler has rlimit64
Checking whether CXX compiler has rlimit64 - no
Checking whether <ext/stdio_filebuf.h> is available
Checking whether <ext/stdio_filebuf.h> is available - no
Performing Test COMPILER_HAS_DEPRECATED_ATTR
Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
Performing Test COMPILER_HAS_DEPRECATED
Performing Test COMPILER_HAS_DEPRECATED - Success
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
Performing Test VTK_HAS_STD_ISNAN
Performing Test VTK_HAS_STD_ISNAN - Success
Performing Test VTK_HAS_STD_ISINF
Performing Test VTK_HAS_STD_ISINF - Success
Performing Test VTK_HAS_STD_ISFINITE
Performing Test VTK_HAS_STD_ISFINITE - Success
Looking for isnan
Looking for isnan - found
Looking for isinf
Looking for isinf - found
Looking for isfinite
Looking for isfinite - found
Looking for finite
Looking for finite - not found
Looking for fenv.h
Looking for fenv.h - found
Looking for feenableexcept
Looking for feenableexcept - not found
Looking for getsockname in socket
Looking for getsockname in socket - not found
Checking for getsockname with socklen_t
Checking for getsockname with socklen_t -- 0
Looking for SO_REUSEADDR
Looking for SO_REUSEADDR - not found
Looking for memset
Looking for memset - found
Looking for memcpy
Looking for memcpy - found
Looking for stddef.h
Looking for stddef.h - found
Looking for stdlib.h
Looking for stdlib.h - found
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Check size of size_t
Check size of size_t - done
Check size of off64_t
Check size of off64_t - failed
Looking for unistd.h
Looking for unistd.h - not found
Performing Test C_FLAG_W3
Performing Test C_FLAG_W3 - Success
Performing Test HAVE_LD_VERSION_SCRIPT
Performing Test HAVE_LD_VERSION_SCRIPT - Failed
Looking for assert.h
Looking for assert.h - found
Looking for fcntl.h
Looking for fcntl.h - found
Looking for io.h
Looking for io.h - found
Looking for strings.h
Looking for strings.h - not found
Looking for sys/time.h
Looking for sys/time.h - not found
Looking for unistd.h
Looking for unistd.h - not found
Looking for getopt
Looking for getopt - not found
Looking for optarg
Looking for optarg - not found
Looking for mmap
Looking for mmap - not found
Looking for setmode
Looking for setmode - not found
Check size of size_t
Check size of size_t - done
Looking for pow
Looking for pow - found
Found CMath: TRUE
Looking for byteswap.h
Looking for byteswap.h - not found
Looking for sys/endian.h
Looking for sys/endian.h - not found
Looking for inttypes.h
Looking for inttypes.h - found
Looking for limits.h
Looking for limits.h - found
Looking for stdbool.h
Looking for stdbool.h - found
Looking for string.h
Looking for string.h - found
Looking for memory.h
Looking for memory.h - found
Check size of int16_t
Check size of int16_t - done
Check size of int32_t
Check size of int32_t - done
Check size of int64_t
Check size of int64_t - done
Check size of intmax_t
Check size of intmax_t - done
Check size of uint8_t
Check size of uint8_t - done
Check size of uint16_t
Check size of uint16_t - done
Check size of uint32_t
Check size of uint32_t - done
Check size of uint64_t
Check size of uint64_t - done
Check size of uintmax_t
Check size of uintmax_t - done
Check size of short
Check size of short - done
Check size of int
Check size of int - done
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Check size of unsigned short
Check size of unsigned short - done
Check size of unsigned
Check size of unsigned - done
Check size of unsigned long
Check size of unsigned long - done
Check size of unsigned long long
Check size of unsigned long long - done
Check size of size_t
Check size of size_t - done
Check size of __int64
Check size of __int64 - done
Check size of unsigned __int64
Check size of unsigned __int64 - done
Check size of uintptr_t
Check size of uintptr_t - done
CMake Deprecation Warning at Remote/vtkDICOM/CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.21/Modules/CTest.cmake:50 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'BUILD_TESTING'.
Call Stack (most recent call first):
Remote/vtkDICOM/CMakeLists.txt:12 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
vtkDICOM: Building vtkDICOM as a Remote VTK Module
Performing Test EIGEN_COMPILER_SUPPORT_CPP11
Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Failed
Performing Test standard_math_library_linked_to_automatically
Performing Test standard_math_library_linked_to_automatically - Success
Performing Test COMPILER_SUPPORT_OPENMP
Performing Test COMPILER_SUPPORT_OPENMP - Success
Performing Test has_std_11_flag
Performing Test has_std_11_flag - Failed
Performing Test has_std_0x_flag
Performing Test has_std_0x_flag - Failed
Performing Test SUPPORTS_USER_DEFINED_LITERALS
Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
Performing Test FMT_HAS_VARIANT
Performing Test FMT_HAS_VARIANT - Success
Looking for _strtod_l
Looking for _strtod_l - not found
Looking for dlfcn.h
Looking for dlfcn.h - not found
Looking for sys/stat.h
Looking for sys/stat.h - found
Looking for getpagesize
Looking for getpagesize - not found
Looking for getrandom
Looking for getrandom - not found
Looking for arc4random_buf
Looking for arc4random_buf - not found
Looking for arc4random
Looking for arc4random - not found
Looking for 4 include files stdlib.h, ..., float.h
Looking for 4 include files stdlib.h, ..., float.h - found
Looking for off_t
Looking for off_t - not found
Performing Test HAVE_SYSCALL_GETRANDOM
Performing Test HAVE_SYSCALL_GETRANDOM - Failed
Performing Test FLAG_NO_STRICT_ALIASING
Performing Test FLAG_NO_STRICT_ALIASING - Failed
Performing Test FLAG_VISIBILITY
Performing Test FLAG_VISIBILITY - Failed
Found OpenGL: opengl32 found components: OpenGL
Looking for include file sys/file.h
Looking for include file sys/file.h - not found
Looking for include file sys/ioctl.h
Looking for include file sys/ioctl.h - not found
Looking for include file sys/resource.h
Looking for include file sys/resource.h - not found
Looking for include file sys/stat.h
Looking for include file sys/stat.h - found
Looking for include files sys/stat.h, sys/time.h
Looking for include files sys/stat.h, sys/time.h - not found
Looking for include files sys/stat.h, sys/types.h
Looking for include files sys/stat.h, sys/types.h - found
Looking for 3 include files sys/stat.h, ..., features.h
Looking for 3 include files sys/stat.h, ..., features.h - not found
Looking for 3 include files sys/stat.h, ..., dirent.h
Looking for 3 include files sys/stat.h, ..., dirent.h - not found
Looking for 3 include files sys/stat.h, ..., setjmp.h
Looking for 3 include files sys/stat.h, ..., setjmp.h - found
Looking for 4 include files sys/stat.h, ..., stddef.h
Looking for 4 include files sys/stat.h, ..., stddef.h - found
Looking for 5 include files sys/stat.h, ..., stdint.h
Looking for 5 include files sys/stat.h, ..., stdint.h - found
Looking for 6 include files sys/stat.h, ..., unistd.h
Looking for 6 include files sys/stat.h, ..., unistd.h - not found
Looking for 6 include files sys/stat.h, ..., io.h
Looking for 6 include files sys/stat.h, ..., io.h - found
Looking for 7 include files sys/stat.h, ..., winsock2.h
Looking for 7 include files sys/stat.h, ..., winsock2.h - found
Looking for 8 include files sys/stat.h, ..., pthread.h
Looking for 8 include files sys/stat.h, ..., pthread.h - not found
Looking for 8 include files sys/stat.h, ..., dlfcn.h
Looking for 8 include files sys/stat.h, ..., dlfcn.h - not found
Looking for 8 include files sys/stat.h, ..., inttypes.h
Looking for 8 include files sys/stat.h, ..., inttypes.h - found
Looking for 9 include files sys/stat.h, ..., netdb.h
Looking for 9 include files sys/stat.h, ..., netdb.h - not found
Looking for 9 include files sys/stat.h, ..., arpa/inet.h
Looking for 9 include files sys/stat.h, ..., arpa/inet.h - not found
Looking for 9 include files sys/stat.h, ..., stdbool.h
Looking for 9 include files sys/stat.h, ..., stdbool.h - found
Looking for include file quadmath.h
Looking for include file quadmath.h - not found
Check size of char
Check size of char - done
Check size of short
Check size of short - done
Check size of int
Check size of int - done
Check size of unsigned
Check size of unsigned - done
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Check size of __int64
Check size of __int64 - done
Check size of float
Check size of float - done
Check size of double
Check size of double - done
Check size of long double
Check size of long double - done
Check size of int8_t
Check size of int8_t - done
Check size of uint8_t
Check size of uint8_t - done
Check size of int_least8_t
Check size of int_least8_t - done
Check size of uint_least8_t
Check size of uint_least8_t - done
Check size of int_fast8_t
Check size of int_fast8_t - done
Check size of uint_fast8_t
Check size of uint_fast8_t - done
Check size of int16_t
Check size of int16_t - done
Check size of uint16_t
Check size of uint16_t - done
Check size of int_least16_t
Check size of int_least16_t - done
Check size of uint_least16_t
Check size of uint_least16_t - done
Check size of int_fast16_t
Check size of int_fast16_t - done
Check size of uint_fast16_t
Check size of uint_fast16_t - done
Check size of int32_t
Check size of int32_t - done
Check size of uint32_t
Check size of uint32_t - done
Check size of int_least32_t
Check size of int_least32_t - done
Check size of uint_least32_t
Check size of uint_least32_t - done
Check size of int_fast32_t
Check size of int_fast32_t - done
Check size of uint_fast32_t
Check size of uint_fast32_t - done
Check size of int64_t
Check size of int64_t - done
Check size of uint64_t
Check size of uint64_t - done
Check size of int_least64_t
Check size of int_least64_t - done
Check size of uint_least64_t
Check size of uint_least64_t - done
Check size of int_fast64_t
Check size of int_fast64_t - done
Check size of uint_fast64_t
Check size of uint_fast64_t - done
Check size of size_t
Check size of size_t - done
Check size of ssize_t
Check size of ssize_t - failed
Check size of off_t
Check size of off_t - done
Check size of off64_t
Check size of off64_t - failed
Check size of time_t
Check size of time_t - done
Check size of bool
Check size of bool - done
Looking for alarm
Looking for alarm - not found
Looking for fcntl
Looking for fcntl - not found
Looking for flock
Looking for flock - not found
Looking for fork
Looking for fork - not found
Looking for frexpf
Looking for frexpf - not found
Looking for frexpl
Looking for frexpl - not found
Looking for getrusage
Looking for getrusage - not found
Looking for pread
Looking for pread - not found
Looking for pwrite
Looking for pwrite - not found
Looking for rand_r
Looking for rand_r - not found
Looking for random
Looking for random - not found
Looking for setsysinfo
Looking for setsysinfo - not found
Looking for signal
Looking for signal - found
Looking for setjmp
Looking for setjmp - found
Looking for siglongjmp
Looking for siglongjmp - not found
Looking for sigsetjmp
Looking for sigsetjmp - not found
Looking for sigprocmask
Looking for sigprocmask - not found
Looking for strtoll
Looking for strtoll - found
Looking for strtoull
Looking for strtoull - found
Looking for symlink
Looking for symlink - not found
Looking for tmpfile
Looking for tmpfile - found
Looking for asprintf
Looking for asprintf - not found
Looking for vasprintf
Looking for vasprintf - not found
Looking for waitpid
Looking for waitpid - not found
Looking for sigsetjmp
Looking for sigsetjmp - not found
Looking for difftime
Looking for difftime - found
Check size of __float128
Check size of __float128 - failed
Check size of _Quad
Check size of _Quad - failed
Looking for include file inttypes.h
Looking for include file inttypes.h - found
Looking for include file stdint.h
Looking for include file stdint.h - found
Looking for include file sys/types.h
Looking for include file sys/types.h - found
Check size of int16_t
Check size of int16_t - done
Check size of uint16_t
Check size of uint16_t - done
Check size of u_int16_t
Check size of u_int16_t - failed
Check size of int32_t
Check size of int32_t - done
Check size of uint32_t
Check size of uint32_t - done
Check size of u_int32_t
Check size of u_int32_t - failed
Check size of int64_t
Check size of int64_t - done
Check size of short
Check size of short - done
Check size of int
Check size of int - done
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Performing Test have_flag_logical-op-parentheses
Performing Test have_flag_logical-op-parentheses - Failed
Performing Test have_flag_parentheses
Performing Test have_flag_parentheses - Failed
Performing Test have_flag_shift-op-parentheses
Performing Test have_flag_shift-op-parentheses - Failed
Performing Test have_flag_tautological-compare
Performing Test have_flag_tautological-compare - Failed
Looking for _filelengthi64
Looking for _filelengthi64 - found
Looking for alloca
Looking for alloca - not found
Looking for isfinite
Looking for isfinite - found
Looking for isinf
Looking for isinf - found
Looking for isnan
Looking for isnan - found
Looking for fsync
Looking for fsync - not found
Looking for mktemp
Looking for mktemp - not found
Looking for getrlimit
Looking for getrlimit - not found
Looking for memmove
Looking for memmove - found
Looking for random
Looking for random - not found
Looking for snprintf
Looking for snprintf - found
Looking for strdup
Looking for strdup - found
Looking for strndup
Looking for strndup - not found
Looking for strlcat
Looking for strlcat - not found
Looking for st_blocksize
Looking for st_blocksize - not found
Looking for sysconf
Looking for sysconf - not found
Looking for alloca.h
Looking for alloca.h - not found
Looking for malloc.h
Looking for malloc.h - found
Looking for stdarg.h
Looking for stdarg.h - found
Looking for stdio.h
Looking for stdio.h - found
Looking for sys/param.h
Looking for sys/param.h - not found
Looking for sys/resource.h
Looking for sys/resource.h - not found
Check size of longlong
Check size of longlong - failed
Check size of long long int
Check size of long long int - done
Check size of ssize_t
Check size of ssize_t - failed
Check size of uchar
Check size of uchar - failed
Check size of uint
Check size of uint - failed
Check size of schar
Check size of schar - failed
Check size of ushort
Check size of ushort - failed
Check size of double
Check size of double - done
Check size of float
Check size of float - done
Check size of int
Check size of int - done
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Check size of off_t
Check size of off_t - done
Check size of short
Check size of short - done
Check size of unsigned char
Check size of unsigned char - done
Check size of unsigned int
Check size of unsigned int - done
Check size of unsigned long long
Check size of unsigned long long - done
Check size of unsigned short int
Check size of unsigned short int - done
Check size of uint64_t
Check size of uint64_t - done
Looking for _lseeki64
Looking for _lseeki64 - found
Testing HDF5 Multi_Dataset - NOT FOUND
Testing HDF5 Collective_metadata - NOT FOUND
Testing HDF5 H5Pset_file_space_strategy - NOT FOUND
Performing Test CHECK_HAVE_STAT64_STRUCT
Performing Test CHECK_HAVE_STAT64_STRUCT - Success
Looking for localeconv
Looking for localeconv - found
Configuring done
after enabling VTK_USE_CUDA
without supplying CMAKE_VS_PLATFORM_TOOLSET_CUDA
and CMAKE_CUDA_COMPILER
:
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
Could not use git to determine source version, using version
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeDetermineCompilerId.cmake:462 (message):
No CUDA toolset found.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeDetermineCompilerId.cmake:59 (__determine_compiler_id_test)
C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeDetermineCUDACompiler.cmake:283 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:130 (enable_language)
Configuring incomplete, errors occurred!
See also "F:/Programming/VTK_9_1_0/build/CMakeFiles/CMakeOutput.log".
See also "F:/Programming/VTK_9_1_0/build/CMakeFiles/CMakeError.log".
after supplying CMAKE_VS_PLATFORM_TOOLSET_CUDA
and CMAKE_CUDA_COMPILER
:
After supplying these CMake crashes for the first time but when reopening CMake it already has the previous configuration cached and will Configure successfully. But will crash everytime I try to generate the project.
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
Could not use git to determine source version, using version
CMake Deprecation Warning at Remote/vtkDICOM/CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
vtkDICOM: Building vtkDICOM as a Remote VTK Module
Configuring done