Commit 7ad5c514 authored by 王翔宇's avatar 王翔宇
Browse files

Add virtual method Init() in Pass abstract class close #404

parent 00a21da4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ Please mark all change in change log and use the ticket from JIRA.
- \#322 - Add option to enable / disable prometheus
- \#358 - Add more information in build.sh and install.md
- \#255 - Add ivfsq8 test report detailed version
- \#404 - Add virtual method Init() in Pass abstract class

## Task

+1 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ load_simple_config() {
void
StartSchedulerService() {
    load_simple_config();
    OptimizerInst::GetInstance()->Init();
    ResMgrInst::GetInstance()->Start();
    SchedInst::GetInstance()->Start();
    JobMgrInst::GetInstance()->Start();
+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,10 @@
namespace milvus {
namespace scheduler {

void
HybridPass::Init() {
}

bool
HybridPass::Run(const TaskPtr& task) {
    // TODO: future, Index::IVFSQ8H, if nq < threshold set cpu, else set gpu
+3 −0
Original line number Diff line number Diff line
@@ -37,6 +37,9 @@ class HybridPass : public Pass {
    HybridPass() = default;

 public:
    void
    Init() override;

    bool
    Run(const TaskPtr& task) override;
};
+2 −1
Original line number Diff line number Diff line
@@ -27,7 +27,8 @@
namespace milvus {
namespace scheduler {

LargeSQ8HPass::LargeSQ8HPass() {
void
LargeSQ8HPass::Init() {
    server::Config& config = server::Config::GetInstance();
    Status s = config.GetEngineConfigGpuSearchThreshold(threshold_);
    if (!s.ok()) {
Loading