diff options
author | Brad King <brad.king@kitware.com> | 2017-04-21 12:57:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-04-21 12:57:59 (GMT) |
commit | 1d8f0f918178c50e8ef66b01546f34cd2a126a6d (patch) | |
tree | 04d8830fb1d4b5338e9afabcb8ac3b4bb134fb05 /Help/prop_tgt | |
parent | 0ad8e4ea658ed992841c81dca2c5eb31abc40983 (diff) | |
parent | 23691d789e198c228e5c2bb7016b3b1194fd0635 (diff) | |
download | CMake-1d8f0f918178c50e8ef66b01546f34cd2a126a6d.zip CMake-1d8f0f918178c50e8ef66b01546f34cd2a126a6d.tar.gz CMake-1d8f0f918178c50e8ef66b01546f34cd2a126a6d.tar.bz2 |
Merge topic 'enable_ptx_compilation'
23691d78 CUDA: Allow sources to be compiled to .ptx files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !725
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r-- | Help/prop_tgt/CUDA_PTX_COMPILATION.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Help/prop_tgt/CUDA_PTX_COMPILATION.rst b/Help/prop_tgt/CUDA_PTX_COMPILATION.rst new file mode 100644 index 0000000..0ee372b --- /dev/null +++ b/Help/prop_tgt/CUDA_PTX_COMPILATION.rst @@ -0,0 +1,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) |