|
|
@ -5,7 +5,7 @@ |
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
#include "logging-helper.hpp"
|
|
|
|
#include "execute-move.hpp"
|
|
|
|
#include "benchmark-dml-mempcy.hpp"
|
|
|
|
|
|
|
|
int main(int argc, char **argv) { |
|
|
|
if (argc < 3) { |
|
|
@ -25,13 +25,13 @@ int main(int argc, char **argv) { |
|
|
|
is.close(); |
|
|
|
|
|
|
|
if (path == "hw") { |
|
|
|
execute_mem_move<dml::hardware>(args); |
|
|
|
execute_dml_memcpy<dml::hardware>(args); |
|
|
|
} |
|
|
|
else if (path == "sw") { |
|
|
|
execute_mem_move<dml::software>(args); |
|
|
|
execute_dml_memcpy<dml::software>(args); |
|
|
|
} |
|
|
|
else if (path == "auto") { |
|
|
|
execute_mem_move<dml::automatic>(args); |
|
|
|
execute_dml_memcpy<dml::automatic>(args); |
|
|
|
} |
|
|
|
else { |
|
|
|
std::cerr << "Path is neither hw/sw/auto." << std::endl; |
|
|
@ -40,4 +40,4 @@ int main(int argc, char **argv) { |
|
|
|
std::ofstream os(output); |
|
|
|
WriteResultLog(args, path, os); |
|
|
|
os.close(); |
|
|
|
} |
|
|
|
} |