| 47 | |
| 48 | template<typename T> |
| 49 | void SyncArray<T>::copy_from(const T *source, size_t count) { |
| 50 | #ifdef USE_CUDA |
| 51 | thunder::device_mem_copy(mem->device_data(), source, sizeof(T) * count); |
| 52 | #else |
| 53 | memcpy(mem->host_data(), source, sizeof(T) * count); |
| 54 | #endif |
| 55 | } |
| 56 | |
| 57 | |
| 58 | template<typename T> |
no test coverage detected