/usr/include/af/backend.h is in libarrayfire-dev 3.2.2+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /*******************************************************
* Copyright (c) 2014, 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
********************************************************/
#pragma once
#include <af/defines.h>
#ifdef __cplusplus
extern "C" {
#endif
#if AF_API_VERSION >= 32
/**
\param[in] bknd takes one of the values of enum \ref af_backend
\returns \ref af_err error code
\ingroup unified_func_setbackend
*/
AFAPI af_err af_set_backend(const af_backend bknd);
#endif
#if AF_API_VERSION >= 32
/**
\param[out] num_backends Number of available backends
\returns \ref af_err error code
\ingroup unified_func_getbackendcount
*/
AFAPI af_err af_get_backend_count(unsigned* num_backends);
#endif
#if AF_API_VERSION >= 32
/**
\param[out] backends is the OR sum of the backends available.
\returns \ref af_err error code
\ingroup unified_func_getavailbackends
*/
AFAPI af_err af_get_available_backends(int* backends);
#endif
#if AF_API_VERSION >= 32
/**
\param[out] backend takes one of the values of enum \ref af_backend
\param[in] in is the array who's backend is to be queried
\returns \ref af_err error code
\ingroup unified_func_getbackendid
*/
AFAPI af_err af_get_backend_id(af_backend *backend, const af_array in);
#endif
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
namespace af
{
class array;
#if AF_API_VERSION >= 32
/**
\param[in] bknd takes one of the values of enum \ref af_backend
\ingroup unified_func_setbackend
*/
AFAPI void setBackend(const Backend bknd);
#endif
#if AF_API_VERSION >= 32
/**
\returns Number of available backends
\ingroup unified_func_getbackendcount
*/
AFAPI unsigned getBackendCount();
#endif
#if AF_API_VERSION >= 32
/**
\returns OR sum of the backends available
\ingroup unified_func_getavailbackends
*/
AFAPI int getAvailableBackends();
#endif
#if AF_API_VERSION >= 32
/**
\param[in] in is the array who's backend is to be queried
\returns \ref af_backend which is the backend on which the array is created
\ingroup unified_func_getbackendid
*/
AFAPI af::Backend getBackendId(const array &in);
#endif
}
#endif
|