MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getBackendId

Method getBackendId

src/backend/common/ArrayInfo.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93af_backend ArrayInfo::getBackendId() const {
94 // devId >> 8 converts the backend info to 1, 2, 4 which are enums
95 // for CPU, CUDA, OpenCL, and oneAPI respectively
96 // See ArrayInfo.hpp for more
97 unsigned backendId = devId >> 8U;
98 return static_cast<af_backend>(backendId);
99}
100
101void ArrayInfo::modStrides(const dim4 &newStrides) { dim_strides = newStrides; }
102

Callers 1

af_get_backend_idFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected