MCPcopy Create free account
hub / github.com/ROCm/rocPRIM / load_to_array_async

Method load_to_array_async

common/utils_device_ptr.hpp:561–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560 template<size_type Size>
561 auto load_to_array_async(hipStream_t stream) const
562 {
563 std::array<value_type, Size> ret;
564 HIP_CHECK(hipMemcpyAsync(ret.data(),
565 device_raw_ptr_,
566 std::min<size_type>(number_of_ele_, Size) * value_size,
567 hipMemcpyDeviceToHost,
568 stream));
569 return ret;
570 }
571
572 auto load_to_unique_ptr() const
573 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected