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