CUDA_PTX_COMPILATION.rst 278 B

123456789101112
  1. CUDA_PTX_COMPILATION
  2. --------------------
  3. Compile CUDA sources to ``.ptx`` files instead of ``.obj`` files
  4. within :ref:`Object Libraries`.
  5. For example:
  6. .. code-block:: cmake
  7. add_library(myptx OBJECT a.cu b.cu)
  8. set_property(TARGET myptx PROPERTY CUDA_PTX_COMPILATION ON)