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.

28 lines
1.6 KiB

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