| 91 | } |
| 92 | |
| 93 | af_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 | |
| 101 | void ArrayInfo::modStrides(const dim4 &newStrides) { dim_strides = newStrides; } |
| 102 |