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

#include "GpuResource.h"


namespace zilliz {
namespace milvus {
namespace engine {


GpuResource::GpuResource(std::string name)
    : Resource(std::move(name), ResourceType::GPU) {}

void GpuResource::LoadFile(TaskPtr task) {
W
wxyu 已提交
19
    task->Load(LoadType::CPU2GPU, 0);
X
xj.lin 已提交
20 21 22
}

void GpuResource::Process(TaskPtr task) {
W
wxyu 已提交
23
    task->Execute();
X
xj.lin 已提交
24 25 26 27 28
}

}
}
}