CUDA_SEPARABLE_COMPILATION.rst 448 B

1234567891011121314151617
  1. CUDA_SEPARABLE_COMPILATION
  2. --------------------------
  3. CUDA only: Enables separate compilation of device code
  4. If set this will enable separable compilation for all CUDA files for
  5. the given target.
  6. For instance:
  7. .. code-block:: cmake
  8. set_property(TARGET myexe PROPERTY CUDA_SEPARABLE_COMPILATION ON)
  9. This property is initialized by the value of the
  10. :variable:`CMAKE_CUDA_SEPARABLE_COMPILATION` variable if it is set when a
  11. target is created.