diff --git a/benchmarks/main.cpp b/benchmarks/main.cpp index 51f5d6b..f49f1f1 100644 --- a/benchmarks/main.cpp +++ b/benchmarks/main.cpp @@ -5,7 +5,6 @@ #include #include "benchmark.hpp" -#include "task-data.hpp" int main(int argc, char **argv) { if (argc < 3) { diff --git a/benchmarks/task-description.json b/benchmarks/task-description.json deleted file mode 100644 index 6c4f577..0000000 --- a/benchmarks/task-description.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "count": 1, - "path" : "sw", - "list": [ - { - "task": { - "size": 4096, - "iterations": 100, - "batching": { - "batch_submit": false, - "batch_size": 0 - } - }, - "affinity": { - "node": 0, - "nnode_src": 0, - "nnode_dst": 0 - } - } - ] -} \ No newline at end of file diff --git a/benchmarks/util/dml-helper.hpp b/benchmarks/util/dml-helper.hpp new file mode 100644 index 0000000..1686fd1 --- /dev/null +++ b/benchmarks/util/dml-helper.hpp @@ -0,0 +1,26 @@ +#pragma once + +#include + +inline const std::string StatusCodeToString(const dml::status_code code) { + switch(code) { + case dml::status_code::ok: return "ok"; + case dml::status_code::false_predicate: return "false predicate"; + case dml::status_code::partial_completion: return "partial completion"; + case dml::status_code::nullptr_error: return "nullptr error"; + case dml::status_code::bad_size: return "bad size"; + case dml::status_code::bad_length: return "bad length"; + case dml::status_code::inconsistent_size: return "inconsistent size"; + case dml::status_code::dualcast_bad_padding: return "dualcast bad padding"; + case dml::status_code::bad_alignment: return "bad alignment"; + case dml::status_code::buffers_overlapping: return "buffers overlapping"; + case dml::status_code::delta_delta_empty: return "delta delta empty"; + case dml::status_code::batch_overflow: return "batch overflow"; + case dml::status_code::execution_failed: return "execution failed"; + case dml::status_code::unsupported_operation: return "unsupported operation"; + case dml::status_code::queue_busy: return "queue busy"; + case dml::status_code::error: return "unknown error"; + case dml::status_code::config_error: return "config error"; + default: return "unhandled error"; + } +} \ No newline at end of file