CUDA: Fail fast if CMAKE_CUDA_ARCHITECTURES doesn't work during detection

Also re-ordered the code to avoid testing flags for other compilers, since
we know the vendor before full detection.
This commit is contained in:
Raul Tambre
2020-08-29 12:44:08 +03:00
parent 9f81aa0f69
commit 01428c5560
2 changed files with 21 additions and 19 deletions

View File

@@ -2,4 +2,5 @@ cuda-fail-fast
--------------
* If ``CUDA`` compiler detection fails with user-specified
:variable:`CMAKE_CUDA_ARCHITECTURES` an error is raised.
:variable:`CMAKE_CUDA_ARCHITECTURES` or :variable:`CMAKE_CUDA_HOST_COMPILER`
an error is raised.