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

Function hip_read_device_memory

example/example_utils.hpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61template<class T>
62inline void hip_read_device_memory(std::vector<T> &host_destination, T *device_source)
63{
64 HIP_CHECK(
65 hipMemcpy(
66 host_destination.data(), device_source,
67 host_destination.size() * sizeof(T),
68 hipMemcpyDeviceToHost
69 )
70 );
71}
72
73template<class T>
74inline void hip_write_device_memory(T *device_destination, std::vector<T>& host_source)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected