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.

45 lines
1.8 KiB

  1. #pragma once
  2. #include <dml/dml.hpp>
  3. namespace dml {
  4. inline const std::string StatusCodeToString(const dml::status_code code) {
  5. switch (code) {
  6. case dml::status_code::ok:
  7. return "ok";
  8. case dml::status_code::false_predicate:
  9. return "false predicate";
  10. case dml::status_code::partial_completion:
  11. return "partial completion";
  12. case dml::status_code::nullptr_error:
  13. return "nullptr error";
  14. case dml::status_code::bad_size:
  15. return "bad size";
  16. case dml::status_code::bad_length:
  17. return "bad length";
  18. case dml::status_code::inconsistent_size:
  19. return "inconsistent size";
  20. case dml::status_code::dualcast_bad_padding:
  21. return "dualcast bad padding";
  22. case dml::status_code::bad_alignment:
  23. return "bad alignment";
  24. case dml::status_code::buffers_overlapping:
  25. return "buffers overlapping";
  26. case dml::status_code::delta_delta_empty:
  27. return "delta delta empty";
  28. case dml::status_code::batch_overflow:
  29. return "batch overflow";
  30. case dml::status_code::execution_failed:
  31. return "execution failed";
  32. case dml::status_code::unsupported_operation:
  33. return "unsupported operation";
  34. case dml::status_code::queue_busy:
  35. return "queue busy";
  36. case dml::status_code::error:
  37. return "unknown error";
  38. case dml::status_code::config_error:
  39. return "config error";
  40. default:
  41. return "unhandled error";
  42. }
  43. }
  44. }