summaryrefslogtreecommitdiff
path: root/share/cmake-3.16/Modules/CMakeCUDACompilerABI.cu
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-02-28 16:35:48 -0800
committerHaibo Huang <hhb@google.com>2020-02-29 16:45:16 +0000
commitd00577c9d4ee9a42fb5158f49a1ebce8047b0bd8 (patch)
treeb2c7fc3ccfe35e3c897e875dd5057b2acebdf1a2 /share/cmake-3.16/Modules/CMakeCUDACompilerABI.cu
parentfc59035d8c856055f2a263dc8a2f9de96c959cc2 (diff)
downloaddarwin-x86-d00577c9d4ee9a42fb5158f49a1ebce8047b0bd8.tar.gz
Upgrade cmake to 3.16 for Darwin
Built at http://fusion-qa/2a43409b-4fa3-4de7-93f3-e63e0b5fbacd One difference here is that ninja and android.toolchain.cmake are not included. Users should sync from prebuilts/ninja or external/android-cmake directly. Bug: 149782024 Change-Id: I999781a5641532e0c432ea28eccde23c0d7c063c
Diffstat (limited to 'share/cmake-3.16/Modules/CMakeCUDACompilerABI.cu')
-rw-r--r--share/cmake-3.16/Modules/CMakeCUDACompilerABI.cu16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/cmake-3.16/Modules/CMakeCUDACompilerABI.cu b/share/cmake-3.16/Modules/CMakeCUDACompilerABI.cu
new file mode 100644
index 0000000..702a7c5
--- /dev/null
+++ b/share/cmake-3.16/Modules/CMakeCUDACompilerABI.cu
@@ -0,0 +1,16 @@
+#ifndef __CUDACC__
+# error "A C or C++ compiler has been selected for CUDA"
+#endif
+
+#include "CMakeCompilerABI.h"
+
+int main(int argc, char* argv[])
+{
+ int require = 0;
+ require += info_sizeof_dptr[argc];
+#if defined(ABI_ID)
+ require += info_abi[argc];
+#endif
+ (void)argv;
+ return require;
+}