| 140 | } |
| 141 | |
| 142 | real* OnDevice::DeviceCopyPolicy::copy(const real* first, const real* last, real*& mem) { |
| 143 | #ifdef ACL_DEVICE |
| 144 | device::DeviceInstance& device = device::DeviceInstance::getInstance(); |
| 145 | const unsigned bytes = (last - first) * sizeof(real); |
| 146 | device.api->copyTo(mem, first, bytes); |
| 147 | mem += (last - first); |
| 148 | return mem; |
| 149 | #else // ACL_DEVICE |
| 150 | return nullptr; |
| 151 | #endif |
| 152 | } |
| 153 | |
| 154 | } // namespace matrixmanip |
| 155 |
nothing calls this directly
no outgoing calls
no test coverage detected