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

Method load_to_unique_ptr_async

common/utils_device_ptr.hpp:582–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected