summaryrefslogtreecommitdiff
path: root/share/cmake-3.22/Modules/CMakeCUDACompilerABI.cu
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.22/Modules/CMakeCUDACompilerABI.cu')
-rw-r--r--share/cmake-3.22/Modules/CMakeCUDACompilerABI.cu18
1 files changed, 18 insertions, 0 deletions
diff --git a/share/cmake-3.22/Modules/CMakeCUDACompilerABI.cu b/share/cmake-3.22/Modules/CMakeCUDACompilerABI.cu
new file mode 100644
index 0000000..449a079
--- /dev/null
+++ b/share/cmake-3.22/Modules/CMakeCUDACompilerABI.cu
@@ -0,0 +1,18 @@
+#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];
+ require += info_byte_order_big_endian[argc];
+ require += info_byte_order_little_endian[argc];
+#if defined(ABI_ID)
+ require += info_abi[argc];
+#endif
+ (void)argv;
+ return require;
+}