cuda-compiled.cc
Go to the documentation of this file.
1 // nnet2bin/cuda-compiled.cc
2 
3 // Copyright 2014 Johns Hopkins University (author: Daniel Povey)
4 
5 // See ../../COPYING for clarification regarding multiple authors
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 // http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15 // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16 // MERCHANTABLITY OR NON-INFRINGEMENT.
17 // See the Apache 2 License for the specific language governing permissions and
18 // limitations under the License.
19 
20 #include "base/kaldi-common.h"
21 #include "cudamatrix/cu-device.h"
22 
23 int main(int argc, char *argv[]) {
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 }
int main(int argc, char *argv[])