You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
33 lines
1.0 KiB
#include <dml/dml.hpp>
|
|
|
|
#include <vector>
|
|
#include <iostream>
|
|
|
|
#include "error.hpp"
|
|
#include "execute-move.hpp"
|
|
|
|
int main(int argc, char **argv) {
|
|
if (argc < 2) {
|
|
std::cout << "Missing the execution path as the first parameter. Use hardware_path, software_path or automatic_path." << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
const std::string path = argv[1];
|
|
|
|
if (path == "hardware_path") {
|
|
std::cout << "Executing using dml::hardware path" << std::endl;
|
|
return execute_mem_move<dml::hardware>();
|
|
}
|
|
else if (path == "software_path") {
|
|
std::cout << "Executing using dml::software path" << std::endl;
|
|
return execute_mem_move<dml::software>();
|
|
}
|
|
else if (path == "auto_path") {
|
|
std::cout << "Executing using dml::automatic path" << std::endl;
|
|
return execute_mem_move<dml::automatic>();
|
|
}
|
|
else {
|
|
std::cout << "Unrecognized value for parameter. Use hardware_path, software_path or automatic_path." << std::endl;
|
|
return 1;
|
|
}
|
|
}
|