diff --git a/src/include/npu_utils/instr_utils/npu_cmd.hpp b/src/include/npu_utils/instr_utils/npu_cmd.hpp index 7826087b..dcb9bd8b 100644 --- a/src/include/npu_utils/instr_utils/npu_cmd.hpp +++ b/src/include/npu_utils/instr_utils/npu_cmd.hpp @@ -7,6 +7,7 @@ #define __NPU_CMD_HPP__ #include +#include #include #include #include @@ -82,6 +83,8 @@ inline void instr_print(int line_number, uint32_t word, std::string msg){ ///@note The class is used to print the command, convert the command to the npu format and dump the command to the buffer ///@warning The class is not used directly, but is used as a base class for all npu commands struct npu_cmd{ + virtual ~npu_cmd() = default; + ///@brief print the command ///@param bd the buffer to dump the command ///@param line_number the line number of the command