Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_35024513
milvus
提交
05dda4ab
milvus
项目概览
qq_35024513
/
milvus
与 Fork 源项目一致
Fork自
milvus / milvus
通知
14
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
05dda4ab
编写于
11月 05, 2019
作者:
Y
youny626
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
clang format
上级
bede7775
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
27 addition
and
23 deletion
+27
-23
core/src/config.h
core/src/config.h
+18
-1
core/src/index/knowhere/knowhere/index/vector_index/IndexGPUIDMAP.cpp
...ex/knowhere/knowhere/index/vector_index/IndexGPUIDMAP.cpp
+1
-1
core/src/index/knowhere/knowhere/index/vector_index/IndexGPUIDMAP.h
...ndex/knowhere/knowhere/index/vector_index/IndexGPUIDMAP.h
+1
-1
core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQ.cpp
...index/knowhere/knowhere/index/vector_index/IndexIVFSQ.cpp
+0
-1
core/src/scheduler/ResourceMgr.cpp
core/src/scheduler/ResourceMgr.cpp
+1
-3
core/src/scheduler/Scheduler.cpp
core/src/scheduler/Scheduler.cpp
+1
-3
core/src/scheduler/resource/Resource.cpp
core/src/scheduler/resource/Resource.cpp
+1
-3
core/src/wrapper/VecIndex.cpp
core/src/wrapper/VecIndex.cpp
+3
-9
core/src/wrapper/gpu/GPUVecImpl.cpp
core/src/wrapper/gpu/GPUVecImpl.cpp
+1
-1
未找到文件。
core/src/config.h
浏览文件 @
05dda4ab
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
#define MILVUS_VERSION "0.5.0"
#define BUILD_TYPE "Debug"
#define BUILD_TIME "2019-11-05 13:
20.31
"
#define BUILD_TIME "2019-11-05 13:
39.33
"
core/src/index/knowhere/knowhere/index/vector_index/IndexGPUIDMAP.cpp
浏览文件 @
05dda4ab
...
...
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#include "IndexGPUIDMAP.h"
#include "
knowhere/index/vector_index/
IndexGPUIDMAP.h"
#include <faiss/AutoTune.h>
#include <faiss/IndexFlat.h>
...
...
core/src/index/knowhere/knowhere/index/vector_index/IndexGPUIDMAP.h
浏览文件 @
05dda4ab
...
...
@@ -60,4 +60,4 @@ class GPUIDMAP : public IDMAP, public GPUIndex {
using
GPUIDMAPPtr
=
std
::
shared_ptr
<
GPUIDMAP
>
;
}
// namespace knowhere
\ No newline at end of file
}
// namespace knowhere
core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQ.cpp
浏览文件 @
05dda4ab
...
...
@@ -31,7 +31,6 @@
#include "knowhere/index/vector_index/IndexGPUIVFSQ.h"
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
#endif
#include "knowhere/index/vector_index/IndexIVFSQ.h"
namespace
knowhere
{
...
...
core/src/scheduler/ResourceMgr.cpp
浏览文件 @
05dda4ab
...
...
@@ -79,9 +79,7 @@ ResourceMgr::Add(ResourcePtr&& resource) {
gpu_resources_
.
emplace_back
(
ResourceWPtr
(
resource
));
break
;
}
default:
{
break
;
}
default:
{
break
;
}
}
resources_
.
emplace_back
(
resource
);
...
...
core/src/scheduler/Scheduler.cpp
浏览文件 @
05dda4ab
...
...
@@ -123,9 +123,7 @@ Scheduler::OnLoadCompleted(const EventPtr& event) {
Action
::
PushTaskToAllNeighbour
(
load_completed_event
->
task_table_item_
,
resource
);
break
;
}
default:
{
break
;
}
default:
{
break
;
}
}
resource
->
WakeupLoader
();
}
...
...
core/src/scheduler/resource/Resource.cpp
浏览文件 @
05dda4ab
...
...
@@ -44,9 +44,7 @@ ToString(ResourceType type) {
case
ResourceType
::
GPU
:
{
return
"GPU"
;
}
default:
{
return
"UNKNOWN"
;
}
default:
{
return
"UNKNOWN"
;
}
}
}
...
...
core/src/wrapper/VecIndex.cpp
浏览文件 @
05dda4ab
...
...
@@ -168,9 +168,7 @@ GetVecIndexFactory(const IndexType& type, const Config& cfg) {
index
=
std
::
make_shared
<
knowhere
::
NSG
>
(
gpu_device
);
break
;
}
default:
{
return
nullptr
;
}
default:
{
return
nullptr
;
}
}
return
std
::
make_shared
<
VecIndexImpl
>
(
index
,
type
);
}
...
...
@@ -278,9 +276,7 @@ ConvertToCpuIndexType(const IndexType& type) {
case
IndexType
::
FAISS_IVFSQ8_MIX
:
{
return
IndexType
::
FAISS_IVFSQ8_CPU
;
}
default:
{
return
type
;
}
default:
{
return
type
;
}
}
}
...
...
@@ -295,9 +291,7 @@ ConvertToGpuIndexType(const IndexType& type) {
case
IndexType
::
FAISS_IVFSQ8_CPU
:
{
return
IndexType
::
FAISS_IVFSQ8_GPU
;
}
default:
{
return
type
;
}
default:
{
return
type
;
}
}
}
...
...
core/src/wrapper/gpu/GPUVecImpl.cpp
浏览文件 @
05dda4ab
...
...
@@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#include "GPUVecImpl.h"
#include "
wrapper/gpu/
GPUVecImpl.h"
#include "knowhere/common/Exception.h"
#include "knowhere/index/vector_index/IndexGPUIDMAP.h"
#include "knowhere/index/vector_index/IndexGPUIVF.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录