|
|
@ -1,13 +1,11 @@ |
|
|
|
#include <dml/dml.hpp>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
constexpr auto string = "Calculate CRC value for this string...\n"; |
|
|
|
|
|
|
|
template <typename path> |
|
|
|
|
|
|
|
|
|
|
|
template <typename path> |
|
|
|
int execute_copy_crc(){ |
|
|
|
std::cout << "Starting dml::copy_crc example...\n"; |
|
|
@ -20,7 +18,6 @@ int execute_copy_crc(){ |
|
|
|
|
|
|
|
// Run operation
|
|
|
|
auto result = dml::execute<path>(dml::copy_crc, dml::make_view(src), dml::make_view(dst), crc_seed); |
|
|
|
dml::submit<path>() |
|
|
|
|
|
|
|
// Check result
|
|
|
|
if (result.status == dml::status_code::ok) { |
|
|
|