From bf3879719bcb9d84ae4838e28844f0b9c89c55d2 Mon Sep 17 00:00:00 2001 From: Sergey Shtin Date: Fri, 7 Apr 2023 19:52:31 +0300 Subject: [PATCH 1/2] [hexagon] Hexagon infweerence fix 1. Resolves issue with kernels linking. 2. Fixes warning generated by clang-15. --- src/runtime/hexagon/hexagon_module.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/hexagon/hexagon_module.h b/src/runtime/hexagon/hexagon_module.h index 8fcc3445961a..5dec9f6336d3 100644 --- a/src/runtime/hexagon/hexagon_module.h +++ b/src/runtime/hexagon/hexagon_module.h @@ -64,7 +64,9 @@ class HexagonModuleNode : public runtime::ModuleNode { const char* type_key() const final { return "hexagon"; } /*! \brief Get the property of the runtime module .*/ int GetPropertyMask() const override { - return ModulePropertyMask::kBinarySerializable | ModulePropertyMask::kRunnable; + return ModulePropertyMask::kBinarySerializable | + ModulePropertyMask::kDSOExportable | + ModulePropertyMask::kRunnable; } void SaveToFile(const std::string& file_name, const std::string& format) override; void SaveToBinary(dmlc::Stream* stream) override; From 0b5a24bd2cccf6f6c4aedd5edca7a5a733a86ec8 Mon Sep 17 00:00:00 2001 From: Sergey Shtin Date: Fri, 7 Apr 2023 20:30:49 +0300 Subject: [PATCH 2/2] Linter fix. --- src/runtime/hexagon/hexagon_module.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/hexagon/hexagon_module.h b/src/runtime/hexagon/hexagon_module.h index 5dec9f6336d3..96595df470e3 100644 --- a/src/runtime/hexagon/hexagon_module.h +++ b/src/runtime/hexagon/hexagon_module.h @@ -64,8 +64,7 @@ class HexagonModuleNode : public runtime::ModuleNode { const char* type_key() const final { return "hexagon"; } /*! \brief Get the property of the runtime module .*/ int GetPropertyMask() const override { - return ModulePropertyMask::kBinarySerializable | - ModulePropertyMask::kDSOExportable | + return ModulePropertyMask::kBinarySerializable | ModulePropertyMask::kDSOExportable | ModulePropertyMask::kRunnable; } void SaveToFile(const std::string& file_name, const std::string& format) override;