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.6 KiB

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