forked from arrayfire/arrayfire
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprint_info.cpp
More file actions
26 lines (22 loc) · 723 Bytes
/
Copy pathprint_info.cpp
File metadata and controls
26 lines (22 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*******************************************************
* Copyright (c) 2018, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
********************************************************/
#include <arrayfire.h>
using namespace af;
int main(int, const char**) {
int backend = getAvailableBackends();
if (backend & AF_BACKEND_OPENCL) {
setBackend(AF_BACKEND_OPENCL);
} else if (backend & AF_BACKEND_CUDA) {
setBackend(AF_BACKEND_CUDA);
} else if (backend & AF_BACKEND_CPU) {
setBackend(AF_BACKEND_CPU);
}
info();
return 0;
}