2 # error "A C or C++ compiler has been selected for CUDA"
5 #include "CMakeCompilerABI.h"
6 #include "CMakeCompilerCUDAArch.h"
8 int main(int argc, char* argv[])
11 require += info_sizeof_dptr[argc];
12 require += info_byte_order_big_endian[argc];
13 require += info_byte_order_little_endian[argc];
15 require += info_abi[argc];
17 static_cast<void>(argv);
19 if (!cmakeCompilerCUDAArch()) {
20 // Convince the compiler that the non-zero return value depends
21 // on the info strings so they are not optimized out.
22 return require ? -1 : 1;