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

Function validate_device_output

example/example_utils.hpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85template<class T>
86inline bool validate_device_output(const std::vector<T> &host_output, const std::vector<T> &expected_output)
87{
88 for(unsigned int index = 0; index < host_output.size(); index++)
89 {
90 if(host_output[index] != expected_output[index])
91 {
92 return false;
93 }
94 }
95 return true;
96}
97
98// Generating expected output for block scan when using rocprim::plus as function
99template<class T>

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected