target_factory uses a hash of the top commit of the repository as
library id. As this id depends on the repository / branch it is not
stable; a version number should be used to represent library API
version if required.
As the library id is only used in the test, drop this function from
the library interface.
Gbp-Pq: Name 0001-Drop-dependency-on-source-repository-hash.patch
virtual void dump(const Target& target, const std::string& file) const = 0;
static const std::string get_lib_name();
- static const std::string get_lib_id();
public:
virtual ~TargetFactory() = default;
return ret;
}
-const std::string TargetFactory::get_lib_id() {
- const auto ret = std::string{PROJECT_GIT_COMMIT_ID};
- return ret;
-}
-
} // namespace ai
} // namespace vitis
UNI_LOG_STD_LEVEL_INFO);
UNI_LOG_INFO << "lib_name = " << TargetFactory::get_lib_name();
- UNI_LOG_INFO << "lib_id = " << TargetFactory::get_lib_id();
return 0;
}