| 60 | |
| 61 | template<class T> |
| 62 | inline void hip_read_device_memory(std::vector<T> &host_destination, T *device_source) |
| 63 | { |
| 64 | HIP_CHECK( |
| 65 | hipMemcpy( |
| 66 | host_destination.data(), device_source, |
| 67 | host_destination.size() * sizeof(T), |
| 68 | hipMemcpyDeviceToHost |
| 69 | ) |
| 70 | ); |
| 71 | } |
| 72 | |
| 73 | template<class T> |
| 74 | inline void hip_write_device_memory(T *device_destination, std::vector<T>& host_source) |