Does anyone know why cmake doesn’t fail with GCC 7 as default compiler under Ubuntu 18.04 ? CUDA 9.1 is not officially supporting it, yet cmake goes through with the configuration/generation/compilation. This could be misleading as GCC 7 is the default now in Ubuntu 18.04.
Under Ubuntu 16.04 and same setup, cmake fails and asks to use a supported GCC version (which you can do with CMAKE_CUDA_HOST_COMPILER for anyone interested).
I even tried setting CMAKE_CUDA_HOST_COMPILER to /usr/bin/g+±7 and nothing happens… very weird.
Setups :
-
Ubuntu 16.04
- GCC : 7.3.0
- cmake : 3.10.3
- cuda : 9.1.85 from .deb
-
Ubuntu 18.04
- GCC : 7.3.0
- cmake : 3.10.3
- cuda : 9.1.85 from apt repos