My Project
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
45#endif
46
47#if AF_API_VERSION >= 32
56#endif
57
58#if AF_API_VERSION >= 33
67#endif
68
69#if AF_API_VERSION >= 33
77AFAPI af_err af_get_device_id(int *device, const af_array in);
78#endif
79
80
81#ifdef __cplusplus
82}
83#endif
84
85#ifdef __cplusplus
86namespace af
87{
88class array;
89
90#if AF_API_VERSION >= 32
96AFAPI void setBackend(const Backend bknd);
97#endif
98
99#if AF_API_VERSION >= 32
106#endif
107
108#if AF_API_VERSION >= 32
115#endif
116
117#if AF_API_VERSION >= 32
125#endif
126
127#if AF_API_VERSION >= 33
134#endif
135
136#if AF_API_VERSION >= 33
145AFAPI int getDeviceId(const array &in);
146#endif
147
148}
149#endif
A multi dimensional data container.
Definition: array.h:27
af_err
Definition: defines.h:63
void * af_array
Definition: defines.h:222
#define AFAPI
Definition: defines.h:31
af_backend
Definition: defines.h:369
AFAPI af_err af_get_active_backend(af_backend *backend)
AFAPI int getAvailableBackends()
AFAPI af_err af_get_available_backends(int *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()
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:329