kernel_registry.h 424 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "target_config.h"
  3. #include <datatypes.h>
  4. #include <runtime/runtime_op.h>
  5. #include <xtl/xspan.hpp>
  6. namespace nncase
  7. {
  8. namespace runtime
  9. {
  10. enum kernel_call_result
  11. {
  12. kcr_done,
  13. kcr_async,
  14. kcr_error
  15. };
  16. kernel_call_result call_kernel(runtime_opcode opcode, xtl::span<const uint8_t> body, interpreter_t &interpreter, interpreter_step_t step);
  17. }
  18. }