mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
When the target property `CUDA_PTX_COMPILATION` is enabled CUDA OBJECT libraries will generate ptx files instead of object files.
13 lines
278 B
ReStructuredText
13 lines
278 B
ReStructuredText
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)
|