cmake/Help/prop_tgt/CUDA_PTX_COMPILATION.rst

15 lines
301 B
ReStructuredText
Raw Normal View History

2017-07-20 19:35:53 +02:00
CUDA_PTX_COMPILATION
--------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.9
2017-07-20 19:35:53 +02:00
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)