| 72 | |
| 73 | template<class T> |
| 74 | inline void hip_write_device_memory(T *device_destination, std::vector<T>& host_source) |
| 75 | { |
| 76 | HIP_CHECK( |
| 77 | hipMemcpy( |
| 78 | device_destination, host_source.data(), |
| 79 | host_source.size() * sizeof(T), |
| 80 | hipMemcpyHostToDevice |
| 81 | ) |
| 82 | ); |
| 83 | } |
| 84 | |
| 85 | template<class T> |
| 86 | inline bool validate_device_output(const std::vector<T> &host_output, const std::vector<T> &expected_output) |