CUDA: Fail if compiler detection using the host compiler fails
If an user has set the host compiler we should fail already during compiler detection if using it is unsuccessful. Otherwise in crosscompiling setups this can lead to a mismatch between the host compiler and linker later on and cause confusing errors. See #21076 (closed) for an example of this.