This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
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.

32 lines
1.0 KiB

  1. #include <dml/dml.hpp>
  2. #include <vector>
  3. #include <iostream>
  4. #include "error.hpp"
  5. #include "execute-move.hpp"
  6. int main(int argc, char **argv) {
  7. if (argc < 2) {
  8. std::cout << "Missing the execution path as the first parameter. Use hardware_path, software_path or automatic_path." << std::endl;
  9. return 1;
  10. }
  11. const std::string path = argv[1];
  12. if (path == "hardware_path") {
  13. std::cout << "Executing using dml::hardware path" << std::endl;
  14. return execute_mem_move<dml::hardware>();
  15. }
  16. else if (path == "software_path") {
  17. std::cout << "Executing using dml::software path" << std::endl;
  18. return execute_mem_move<dml::software>();
  19. }
  20. else if (path == "auto_path") {
  21. std::cout << "Executing using dml::automatic path" << std::endl;
  22. return execute_mem_move<dml::automatic>();
  23. }
  24. else {
  25. std::cout << "Unrecognized value for parameter. Use hardware_path, software_path or automatic_path." << std::endl;
  26. return 1;
  27. }
  28. }