GpuResource.h 875 字节
Newer Older
W
wxyu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/
#pragma once


#include "Resource.h"


namespace zilliz {
namespace milvus {
namespace engine {

class GpuResource : public Resource {
W
wxyu 已提交
17 18
public:
    explicit
W
wxyu 已提交
19
    GpuResource(std::string name, bool enable_loader, bool enable_executor);
W
wxyu 已提交
20

21 22 23 24 25 26 27
    inline std::string
    Dump() const override {
        return "<GpuResource>";
    }

    friend std::ostream &operator<<(std::ostream &out, const GpuResource &resource);

W
wxyu 已提交
28 29
protected:
    void
X
xj.lin 已提交
30
    LoadFile(TaskPtr task) override;
W
wxyu 已提交
31 32

    void
X
xj.lin 已提交
33
    Process(TaskPtr task) override;
W
wxyu 已提交
34 35 36 37 38
};

}
}
}