OmniSciDB
085a039ca4
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
get_nvidia_compute_capability.cpp
Go to the documentation of this file.
1
// Copyright (c) 2021 OmniSci, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#include "
Shared/get_nvidia_compute_capability.h
"
16
17
#include <iostream>
18
19
int
main
(
int
argc,
char
** argv) {
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
}
get_nvidia_compute_capability.h
get_nvidia_compute_capability
std::vector< size_t > get_nvidia_compute_capability()
Definition:
get_nvidia_compute_capability.h:24
analyze_benchmark.main
def main
Definition:
analyze_benchmark.py:250
NvidiaComputeCapability
get_nvidia_compute_capability.cpp
Generated on Sat Apr 16 2022 06:28:51 for OmniSciDB by
1.8.5