mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-05 18:31:59 +08:00
Merge branch 'branch-0.4.0' into 'branch-0.4.0'
fix scheduler unittest error See merge request megasearch/milvus!563 Former-commit-id: e5048bd9d4685ca47f403b19acdd118a4442791b
This commit is contained in:
commit
6d6bd52c24
@ -94,6 +94,10 @@ class SchedulerTest : public testing::Test {
|
||||
protected:
|
||||
void
|
||||
SetUp() override {
|
||||
constexpr int64_t cache_cap = 1024*1024*1024;
|
||||
cache::GpuCacheMgr::GetInstance(0)->SetCapacity(cache_cap);
|
||||
cache::GpuCacheMgr::GetInstance(1)->SetCapacity(cache_cap);
|
||||
|
||||
ResourcePtr cpu = ResourceFactory::Create("cpu", "CPU", 0, true, false);
|
||||
ResourcePtr gpu_0 = ResourceFactory::Create("gpu0", "GPU", 0);
|
||||
ResourcePtr gpu_1 = ResourceFactory::Create("gpu1", "GPU", 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user