mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
23691d789e
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)
|