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.

25 lines
1.4 KiB

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