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

Method load_to_array

common/utils_device_ptr.hpp:550–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected