summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-03-17 19:09:49 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-07 13:33:25 (GMT)
commit5f02add366f1fb3d952e88df15252945b5fed9b2 (patch)
tree1d020de53219e231ddc51814a969dd3389841937 /Modules/Compiler
parent25439c7d62113a29e253c0556f8cb64e6c18c75c (diff)
downloadCMake-5f02add366f1fb3d952e88df15252945b5fed9b2.zip
CMake-5f02add366f1fb3d952e88df15252945b5fed9b2.tar.gz
CMake-5f02add366f1fb3d952e88df15252945b5fed9b2.tar.bz2
CUDA: Refactor PTX compilation flag into compiler modules
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/NVIDIA-CUDA.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake
index 2a2564e..e24738d 100644
--- a/Modules/Compiler/NVIDIA-CUDA.cmake
+++ b/Modules/Compiler/NVIDIA-CUDA.cmake
@@ -5,6 +5,7 @@ set(CMAKE_CUDA_VERBOSE_FLAG "-v")
set(CMAKE_CUDA_VERBOSE_COMPILE_FLAG "-Xcompiler=-v")
set(_CMAKE_COMPILE_AS_CUDA_FLAG "-x cu")
+set(_CMAKE_CUDA_PTX_FLAG "-ptx")
if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 10.2.89)
# The -forward-unknown-to-host-compiler flag was only