Browse Source

fix include naming

master
Constantin Fürst 1 year ago
parent
commit
5b889b87e1
  1. 1
      benchmarks/main.cpp
  2. 21
      benchmarks/task-description.json
  3. 26
      benchmarks/util/dml-helper.hpp

1
benchmarks/main.cpp

@ -5,7 +5,6 @@
#include <fstream> #include <fstream>
#include "benchmark.hpp" #include "benchmark.hpp"
#include "task-data.hpp"
int main(int argc, char **argv) { int main(int argc, char **argv) {
if (argc < 3) { if (argc < 3) {

21
benchmarks/task-description.json

@ -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
}
}
]
}

26
benchmarks/util/dml-helper.hpp

@ -0,0 +1,26 @@
#pragma once
#include <dml/dml.hpp>
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";
}
}
Loading…
Cancel
Save