cuda-compiled.cc File Reference
Include dependency graph for cuda-compiled.cc:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 23 of file cuda-compiled.cc.

23  {
24  const char *usage = "This program returns exit status 0 (success) if the code\n"
25  "was compiled with CUDA support, and 1 otherwise. To support CUDA, you\n"
26  "must run 'configure' on a machine that has the CUDA compiler 'nvcc'\n"
27  "available.\n";
28  if (argc > 1) {
29  std::cerr << usage << "\n";
30  }
31 #if HAVE_CUDA==1
32  return 0;
33 #else
34  return 1;
35 #endif
36 }