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