This makes clang somewhat forward-compatible with new CUDA releases without
having to patch it for every minor release without adding any new functionality.
If an unknown version is found, clang issues a warning (can be disabled with -Wno-cuda-unknown-version)
and assumes that it has detected the latest known version. CUDA releases are usually supersets
of older ones feature-wise, so it should be sufficient to keep released clang versions
working with minor CUDA updates without having to upgrade clang, too.
We got some issue with this warning.
Basically CudaInstallationDetector is a member of GNU and other host toolchain and this check is done in the ctor.
If a user has latest CUDA SDK installed, clang will always emit a warning. If the user has -Werror set, which is quite common, compilation will always fail.
Is it possible only do this check for CUDA compilation?
Thanks.