OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 19 of file get_nvidia_compute_capability.cpp.

References get_nvidia_compute_capability().

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

+ Here is the call graph for this function: