| 580 | } |
| 581 | |
| 582 | auto load_to_unique_ptr_async(hipStream_t stream) const |
| 583 | { |
| 584 | std::unique_ptr<value_type[]> ret(new value_type[number_of_ele_]); |
| 585 | HIP_CHECK(hipMemcpyAsync(ret.get(), |
| 586 | device_raw_ptr_, |
| 587 | number_of_ele_ * value_size, |
| 588 | hipMemcpyDeviceToHost, |
| 589 | stream)); |
| 590 | return ret; |
| 591 | } |
| 592 | |
| 593 | auto load_value_at(size_type pos) const |
| 594 | { |