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

Function hip_write_device_memory

example/example_utils.hpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73template<class T>
74inline void hip_write_device_memory(T *device_destination, std::vector<T>& host_source)
75{
76 HIP_CHECK(
77 hipMemcpy(
78 device_destination, host_source.data(),
79 host_source.size() * sizeof(T),
80 hipMemcpyHostToDevice
81 )
82 );
83}
84
85template<class T>
86inline bool validate_device_output(const std::vector<T> &host_output, const std::vector<T> &expected_output)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected