blob: 4e90afee98b4f9edef7c4b7e8920f25a0c7f8065 [file] [log] [blame]
CUDA_PTX_COMPILATION
--------------------
.. versionadded:: 3.9
Compile CUDA sources to ``.ptx`` files instead of ``.obj`` files
within :ref:`Object Libraries`.
For example:
.. code-block:: cmake
add_library(myptx OBJECT a.cu b.cu)
set_property(TARGET myptx PROPERTY CUDA_PTX_COMPILATION ON)