Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
38b90033
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
4
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,发现更多精彩内容 >>
提交
38b90033
编写于
10月 15, 2019
作者:
X
xiaojun.lin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
Former-commit-id: 51ae3d7d749b7b429c12abce28ffc7111fa012ee
上级
2ce91b6c
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
29 addition
and
27 deletion
+29
-27
ci/jenkinsfile/milvus_build.groovy
ci/jenkinsfile/milvus_build.groovy
+6
-1
core/CMakeLists.txt
core/CMakeLists.txt
+4
-0
core/build.sh
core/build.sh
+10
-3
core/src/CMakeLists.txt
core/src/CMakeLists.txt
+0
-4
core/src/index/CMakeLists.txt
core/src/index/CMakeLists.txt
+0
-4
core/src/index/cmake/ThirdPartyPackagesCore.cmake
core/src/index/cmake/ThirdPartyPackagesCore.cmake
+9
-11
core/unittest/CMakeLists.txt
core/unittest/CMakeLists.txt
+0
-4
未找到文件。
ci/jenkinsfile/milvus_build.groovy
浏览文件 @
38b90033
...
...
@@ -10,7 +10,12 @@ container('milvus-build-env') {
sh
"git config --global user.name \"test\""
withCredentials
([
usernamePassword
(
credentialsId:
"${params.JFROG_USER}"
,
usernameVariable:
'USERNAME'
,
passwordVariable:
'PASSWORD'
)])
{
sh
"./build.sh -l"
sh
"export JFROG_ARTFACTORY_URL='${params.JFROG_ARTFACTORY_URL}' && export JFROG_USER_NAME='${USERNAME}' && export JFROG_PASSWORD='${PASSWORD}' && ./build.sh -t ${params.BUILD_TYPE} -j -u -c"
sh
"export JFROG_ARTFACTORY_URL='${params.JFROG_ARTFACTORY_URL}' \
&& export JFROG_USER_NAME='${USERNAME}' \
&& export JFROG_PASSWORD='${PASSWORD}' \
&& export FAISS_URL='http://192.168.1.105:6060/jinhai/faiss/-/archive/branch-0.2.1/faiss-branch-0.2.1.tar.gz' \
&& ./build.sh -t ${params.BUILD_TYPE} -j -u -c"
sh
"./coverage.sh -u root -p Fantast1c -t 192.168.1.194"
}
}
...
...
core/CMakeLists.txt
浏览文件 @
38b90033
...
...
@@ -132,6 +132,10 @@ include(ThirdPartyPackages)
config_summary
()
if
(
CUSTOMIZATION
)
add_definitions
(
-DCUSTOMIZATION
)
endif
(
CUSTOMIZATION
)
add_subdirectory
(
src
)
if
(
BUILD_UNIT_TEST STREQUAL
"ON"
)
...
...
core/build.sh
浏览文件 @
38b90033
...
...
@@ -9,10 +9,16 @@ DB_PATH="/opt/milvus"
PROFILING
=
"OFF"
USE_JFROG_CACHE
=
"OFF"
RUN_CPPLINT
=
"OFF"
CUSTOMIZATION
=
"O
N"
CUSTOMIZATION
=
"O
FF"
# default use ori faiss
CUDA_COMPILER
=
/usr/local/cuda/bin/nvcc
wget
-q
--method
HEAD
CUSTOMIZED_FAISS_URL
=
"
${
FAISS_URL
:-
NONE
}
"
wget
-q
--method
HEAD
${
CUSTOMIZED_FAISS_URL
}
if
[
$?
-eq
0
]
;
then
CUSTOMIZATION
=
"ON"
else
CUSTOMIZATION
=
"OFF"
fi
while
getopts
"p:d:t:ulrcgjhx"
arg
do
...
...
@@ -49,7 +55,7 @@ do
USE_JFROG_CACHE
=
"ON"
;;
x
)
CUSTOMIZATION
=
"OFF"
CUSTOMIZATION
=
"OFF"
# force use ori faiss
;;
h
)
# help
echo
"
...
...
@@ -94,6 +100,7 @@ CMAKE_CMD="cmake \
-DMILVUS_ENABLE_PROFILING=
${
PROFILING
}
\
-DUSE_JFROG_CACHE=
${
USE_JFROG_CACHE
}
\
-DCUSTOMIZATION=
${
CUSTOMIZATION
}
\
-DFAISS_URL=
${
CUSTOMIZED_FAISS_URL
}
\
../"
echo
${
CMAKE_CMD
}
${
CMAKE_CMD
}
...
...
core/src/CMakeLists.txt
浏览文件 @
38b90033
...
...
@@ -27,10 +27,6 @@ include_directories(${MILVUS_ENGINE_SRC}/grpc/gen-milvus)
#this statement must put here, since the CORE_INCLUDE_DIRS is defined in code/CMakeList.txt
add_subdirectory
(
index
)
if
(
CUSTOMIZATION
)
add_definitions
(
-DCUSTOMIZATION
)
endif
(
CUSTOMIZATION
)
set
(
CORE_INCLUDE_DIRS
${
CORE_INCLUDE_DIRS
}
PARENT_SCOPE
)
foreach
(
dir
${
CORE_INCLUDE_DIRS
}
)
include_directories
(
${
dir
}
)
...
...
core/src/index/CMakeLists.txt
浏览文件 @
38b90033
...
...
@@ -86,10 +86,6 @@ include(DefineOptionsCore)
include
(
BuildUtilsCore
)
include
(
ThirdPartyPackagesCore
)
if
(
CUSTOMIZATION
)
add_definitions
(
-DCUSTOMIZATION
)
endif
(
CUSTOMIZATION
)
add_subdirectory
(
knowhere
)
if
(
BUILD_COVERAGE STREQUAL
"ON"
)
...
...
core/src/index/cmake/ThirdPartyPackagesCore.cmake
浏览文件 @
38b90033
...
...
@@ -233,18 +233,16 @@ foreach(_VERSION_ENTRY ${TOOLCHAIN_VERSIONS_TXT})
endforeach
()
if
(
CUSTOMIZATION
)
set
(
FAISS_SOURCE_URL
"http://192.168.1.105:6060/jinhai/faiss/-/archive/
${
FAISS_VERSION
}
/faiss-
${
FAISS_VERSION
}
.tar.gz"
)
execute_process
(
COMMAND wget -q --method HEAD
${
FAISS_URL
}
RESULT_VARIABLE return_code
)
message
(
STATUS
"Check the remote cache file
${
FAISS_URL
}
. return code =
${
return_code
}
"
)
if
(
NOT return_code EQUAL 0
)
MESSAGE
(
FATAL_ERROR
"Can't access to
${
FAISS_URL
}
"
)
else
()
# set(FAISS_MD5 "a589663865a8558205533c8ac414278c")
# set(FAISS_MD5 "57da9c4f599cc8fa4260488b1c96e1cc") # commit-id 6dbdf75987c34a2c853bd172ea0d384feea8358c branch-0.2.0
# set(FAISS_MD5 "21deb1c708490ca40ecb899122c01403") # commit-id 643e48f479637fd947e7b93fa4ca72b38ecc9a39 branch-0.2.0
# set(FAISS_MD5 "072db398351cca6e88f52d743bbb9fa0") # commit-id 3a2344d04744166af41ef1a74449d68a315bfe17 branch-0.2.1
set
(
FAISS_MD5
"c89ea8e655f5cdf58f42486f13614714"
)
# commit-id 9c28a1cbb88f41fa03b03d7204106201ad33276b branch-0.2.1
execute_process
(
COMMAND wget -q --method HEAD
${
FAISS_SOURCE_URL
}
RESULT_VARIABLE return_code
)
message
(
STATUS
"Check the remote cache file
${
FAISS_SOURCE_URL
}
. return code =
${
return_code
}
"
)
if
(
NOT return_code EQUAL 0
)
set
(
FAISS_SOURCE_URL
"https://github.com/facebookresearch/faiss/archive/v1.5.3.tar.gz"
)
set
(
CUSTOMIZATION FALSE PARENT_SCOPE
)
endif
()
else
()
set
(
FAISS_SOURCE_URL
"https://github.com/facebookresearch/faiss/archive/v1.5.3.tar.gz"
)
...
...
core/unittest/CMakeLists.txt
浏览文件 @
38b90033
...
...
@@ -16,10 +16,6 @@
# specific language governing permissions and limitations
# under the License.
#-------------------------------------------------------------------------------
if
(
CUSTOMIZATION
)
add_definitions
(
-DCUSTOMIZATION
)
endif
(
CUSTOMIZATION
)
include_directories
(
"
${
CUDA_TOOLKIT_ROOT_DIR
}
/include"
)
foreach
(
dir
${
CORE_INCLUDE_DIRS
}
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录