OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
get_nvidia_compute_capability.cpp File Reference
#include "Shared/get_nvidia_compute_capability.h"
#include <iostream>
+ Include dependency graph for get_nvidia_compute_capability.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 21 of file get_nvidia_compute_capability.cpp.

References get_nvidia_compute_capability().

21  {
22  std::vector<size_t> capabilities;
23 
24  try {
25  capabilities = get_nvidia_compute_capability();
26  } catch (const std::exception& e) {
27  std::cerr << "get_nvidia_compute_capability failed: " << e.what();
28  return 1;
29  } catch (...) {
30  std::cerr << "get_nvidia_compute_capability failed";
31  return 2;
32  }
33 
34  for (auto capability : capabilities) {
35  std::cout << capability << std::endl;
36  break; // TODO(sy): need to add an --all flag
37  }
38 
39  return 0;
40 }
std::vector< size_t > get_nvidia_compute_capability()

+ Here is the call graph for this function: