summaryrefslogtreecommitdiff
path: root/Help/prop_tgt/CUDA_PTX_COMPILATION.rst
blob: 0ee372b8bf7bc5f54e5732086dc940c864eedb87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CUDA_PTX_COMPILATION
--------------------

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)