CMAKE_CUDA_ARCHITECTURES.rst 634 B

1234567891011121314151617
  1. CMAKE_CUDA_ARCHITECTURES
  2. ------------------------
  3. Default value for :prop_tgt:`CUDA_ARCHITECTURES` property of targets.
  4. This is initialized as follows depending on :variable:`CMAKE_CUDA_COMPILER_ID <CMAKE_<LANG>_COMPILER_ID>`:
  5. - For ``Clang``: the oldest architecture that works.
  6. - For ``NVIDIA``: the default architecture chosen by the compiler.
  7. See policy :policy:`CMP0104`.
  8. Users are encouraged to override this, as the default varies across compilers
  9. and compiler versions.
  10. This variable is used to initialize the :prop_tgt:`CUDA_ARCHITECTURES` property
  11. on all targets. See the target property for additional information.