A high-performance general-purpose compute library
backend.h
Go to the documentation of this file.
1/*******************************************************
2 * Copyright (c) 2014, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10#pragma once
11#include <af/defines.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#if AF_API_VERSION >= 32
25#endif
26
27#if AF_API_VERSION >= 32
34AFAPI af_err af_get_backend_count(unsigned* num_backends);
35#endif
36
37#if AF_API_VERSION >= 32
58#endif
59
60#if AF_API_VERSION >= 32
69#endif
70
71#if AF_API_VERSION >= 33
80#endif
81
82#if AF_API_VERSION >= 33
90AFAPI af_err af_get_device_id(int *device, const af_array in);
91#endif
92
93
94#ifdef __cplusplus
95}
96#endif
97
98#ifdef __cplusplus
99namespace af
100{
101class array;
102
103#if AF_API_VERSION >= 32
109AFAPI void setBackend(const Backend bknd);
110#endif
111
112#if AF_API_VERSION >= 32
119#endif
120
121#if AF_API_VERSION >= 32
138#endif
139
140#if AF_API_VERSION >= 32
148#endif
149
150#if AF_API_VERSION >= 33
157#endif
158
159#if AF_API_VERSION >= 33
168AFAPI int getDeviceId(const array &in);
169#endif
170
171}
172#endif
A multi dimensional data container.
Definition: array.h:37
af_err
Definition: defines.h:71
void * af_array
Definition: defines.h:240
#define AFAPI
Definition: defines.h:38
af_backend
Definition: defines.h:413
AFAPI af_err af_get_active_backend(af_backend *backend)
AFAPI int getAvailableBackends()
Returns a flag of all available backends.
AFAPI af_err af_get_available_backends(int *backends)
Returns a flag of all available backends.
AFAPI unsigned getBackendCount()
AFAPI af_err af_get_backend_count(unsigned *num_backends)
AFAPI af::Backend getBackendId(const array &in)
AFAPI af_err af_get_backend_id(af_backend *backend, const af_array in)
AFAPI int getDeviceId(const array &in)
AFAPI af_err af_get_device_id(int *device, const af_array in)
AFAPI af_err af_set_backend(const af_backend bknd)
AFAPI void setBackend(const Backend bknd)
Definition: algorithm.h:15
AFAPI af::Backend getActiveBackend()