| 548 | |
| 549 | template<size_type Size> |
| 550 | auto load_to_array() const |
| 551 | { |
| 552 | std::array<value_type, Size> ret; |
| 553 | HIP_CHECK(hipMemcpy(ret.data(), |
| 554 | device_raw_ptr_, |
| 555 | std::min<size_type>(number_of_ele_, Size) * value_size, |
| 556 | hipMemcpyDeviceToHost)); |
| 557 | return ret; |
| 558 | } |
| 559 | |
| 560 | template<size_type Size> |
| 561 | auto load_to_array_async(hipStream_t stream) const |
nothing calls this directly
no outgoing calls
no test coverage detected