| 123 | |
| 124 | template<typename T> |
| 125 | void *getRawPtr(const Array<T> &arr) { |
| 126 | getQueue().sync(); |
| 127 | return (void *)(arr.get(false)); |
| 128 | } |
| 129 | |
| 130 | /// Checks if the Array object can be migrated to the current device and if not, |
| 131 | /// an error is thrown |