New Issue: Check for incompatible CUDA versions

20086, "e-kayrakli", "Check for incompatible CUDA versions", "2022-06-27T18:36:55Z"

Fix GPU support for LLVM 14, ignore CUDA version warnings by e-kayrakli · Pull Request #20016 · chapel-lang/chapel · GitHub suppressed the incompatible CUDA version warning emitted by clang. This is fine because we are using a very limited/core part of the CUDA Driver API. However, we want to be more principled here. We should improve our chplenv scripts to compare the Clang and CUDA versions to:

  • Error at build time if CUDA is too old (we do that for things like system LLVM, hwloc etc)
  • Warn at build time if CUDA is too new (where my hope is that Clang doesn't fall too behind CUDA such that we'd be using something that's removed in a non-backwards-compatible way)