You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
CMAKE fails with possibly missing gencode configuration #104
I think I've potentially traced the problem - it can be caused also by something else - but I've been able to replicate with CMake 3.22 and using -DCMAKE_CUDA_ARCHITECTURES=native option.
Is this your case (cmake < 3.24) and using the native option?
If so, just to omit -DCMAKE_CUDA_ARCHITECTURES=native. It seems like native has been added in cmake 3.24. So the hint is perhaps not usable. It is OK to remove, actually I'll consider reformulating (definitely hiding "native" for older cmake). Also using native has some disadvantages, so it may not be desirable to use.
If so, just to omit -DCMAKE_CUDA_ARCHITECTURES=native. [...]
FYI, in addition to native (and besides the actual numeric version), all or all-major may also be used. It would, however, increase compilation time and binary size and requires the CMake >= 3.24 as well. But the written above holds - not setting anything is fine.
Activity
MartinPulec commentedon Jan 2, 2026
Sorry for the delayed answer.
I think I've potentially traced the problem - it can be caused also by something else - but I've been able to replicate with CMake 3.22 and using
-DCMAKE_CUDA_ARCHITECTURES=nativeoption.Is this your case (cmake < 3.24) and using the native option?
If so, just to omit
-DCMAKE_CUDA_ARCHITECTURES=native. It seems like native has been added in cmake 3.24. So the hint is perhaps not usable. It is OK to remove, actually I'll consider reformulating (definitely hiding "native" for older cmake). Also usingnativehas some disadvantages, so it may not be desirable to use.Show more details
The native argument sets the CMake CUDA architecture to the value compute capability of detected NVIDIA GPU in system.
Advantages:
Disadvantages:
MartinPulec commentedon Jan 2, 2026
FYI, in addition to
native(and besides the actual numeric version),allorall-majormay also be used. It would, however, increase compilation time and binary size and requires the CMake >= 3.24 as well. But the written above holds - not setting anything is fine.CMakeLists.txt: do not suggest setting arch=native