Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
3367c154
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,发现更多精彩内容 >>
提交
3367c154
编写于
6月 13, 2019
作者:
Y
Yang Xuan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'mega/branch-0.3.0' into branch-0.3.0
Former-commit-id: bd55d1b4cdbe3a7a799b689777a71f36031f82bc
上级
2a027bff
be843f84
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
34 addition
and
26 deletion
+34
-26
cpp/CHANGELOG.md
cpp/CHANGELOG.md
+2
-0
cpp/CMakeLists.txt
cpp/CMakeLists.txt
+8
-5
cpp/README.md
cpp/README.md
+20
-17
cpp/cmake/DefineOptions.cmake
cpp/cmake/DefineOptions.cmake
+1
-1
cpp/cmake/ThirdPartyPackages.cmake
cpp/cmake/ThirdPartyPackages.cmake
+1
-1
cpp/thirdparty/versions.txt
cpp/thirdparty/versions.txt
+2
-2
未找到文件。
cpp/CHANGELOG.md
浏览文件 @
3367c154
...
...
@@ -22,8 +22,10 @@ Please mark all change in change log and use the ticket from JIRA.
-
MS-73 - cmake: delete civetweb
-
MS-65 - Implement GetTableRowCount interface
-
MS-45 - Implement DeleteTable interface
-
MS-75 - cmake: change faiss version to 1.5.2; add CUDA gencode
## Task
-
MS-74 - Change README.md in cpp
# MegaSearch 0.2.0 (2019-05-31)
...
...
cpp/CMakeLists.txt
浏览文件 @
3367c154
...
...
@@ -20,11 +20,12 @@ MACRO (GET_GIT_BRANCH_NAME GIT_BRANCH_NAME)
ENDMACRO
(
GET_GIT_BRANCH_NAME
)
GET_GIT_BRANCH_NAME
(
GIT_BRANCH_NAME
)
string
(
REGEX REPLACE
"
\n
"
""
GIT_BRANCH_NAME
${
GIT_BRANCH_NAME
}
)
if
(
NOT GIT_BRANCH_NAME STREQUAL
""
)
string
(
REGEX REPLACE
"
\n
"
""
GIT_BRANCH_NAME
${
GIT_BRANCH_NAME
}
)
endif
()
set
(
MEGASEARCH_VERSION
"
${
GIT_BRANCH_NAME
}
"
)
string
(
REGEX MATCH
"[0-9]+
\\
.[0-9]+
\\
.[0-9]"
MEGASEARCH_VERSION
"
${
MEGASEARCH_VERSION
}
"
)
message
(
STATUS
"Build version =
${
MEGASEARCH_VERSION
}
"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Release"
)
set
(
BUILD_TYPE
"release"
)
...
...
@@ -33,8 +34,6 @@ else()
endif
()
message
(
STATUS
"Build type =
${
BUILD_TYPE
}
"
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/version.h.macro
${
CMAKE_CURRENT_SOURCE_DIR
}
/version.h
)
project
(
megasearch VERSION
"
${
MEGASEARCH_VERSION
}
"
)
project
(
vecwise_engine LANGUAGES CUDA CXX
)
...
...
@@ -79,9 +78,13 @@ set(MEGASEARCH_VERSION_PATCH "${megasearch_VERSION_PATCH}")
if
(
MEGASEARCH_VERSION_MAJOR STREQUAL
""
OR MEGASEARCH_VERSION_MINOR STREQUAL
""
OR MEGASEARCH_VERSION_PATCH STREQUAL
""
)
message
(
FATAL_ERROR
"Failed to determine MegaSearch version from '
${
MEGASEARCH_VERSION
}
'"
)
message
(
WARNING
"Failed to determine MegaSearch version from '
${
MEGASEARCH_VERSION
}
'"
)
set
(
MEGASEARCH_VERSION
"unknown"
)
endif
()
message
(
STATUS
"Build version =
${
MEGASEARCH_VERSION
}
"
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/version.h.macro
${
CMAKE_CURRENT_SOURCE_DIR
}
/version.h
)
message
(
STATUS
"MegaSearch version: "
"
${
MEGASEARCH_VERSION_MAJOR
}
.
${
MEGASEARCH_VERSION_MINOR
}
.
${
MEGASEARCH_VERSION_PATCH
}
"
"(full: '
${
MEGASEARCH_VERSION
}
')"
)
...
...
cpp/README.md
浏览文件 @
3367c154
...
...
@@ -2,20 +2,12 @@
#### Step 1: install necessery tools
centos7 :
yum install gfortran
libsqlite3-dev libsnappy-dev libzstd-dev bzip2
yum install gfortran
flex bison
ubuntu16.04 :
sudo apt-get install gfortran
libsqlite3-dev libsnappy-dev libzstd-dev bzip2 liblz4-dev
sudo apt-get install gfortran
flex bison
#### Step 2: build third-parties
Note: If you want to debug into third-parties, you can build debug with CXXFLAGS='-g -O0' with option
: -t Debug
cd [sourcecode path]/cpp/thid_party
./build.sh -t Debug
./build.sh -t Release
#### Step 3: build(output to cmake_build folder)
#### Step 2: build(output to cmake_build folder)
cmake_build/src/vecwise_server is the server
cmake_build/src/libvecwise_engine.a is the static library
...
...
@@ -24,19 +16,30 @@ cmake_build/src/libvecwise_engine.a is the static library
./build.sh -t Debug
./build.sh -t Release
./build.sh -g # Build GPU version
If you encounter the following error when building:
`protocol https not supported or disabled in libcurl`
1.
Install libcurl4-openssl-dev
2.
Install cmake 3.14:
```
./bootstrap --system-curl
make
sudo make install
```
#### To build unittest:
./build.sh -u
or
./build.sh --unittest
### Launch server
Set config in cpp/conf/server_config.yaml
Then launch server with config:
cd [build output path]
start_server.sh
stop_server.sh
...
...
@@ -44,7 +47,7 @@ Then launch server with config:
### Launch test_client(only for debug)
If you want to test remote api, you can build test_client.
test_client use same config file with server:
cd [build output path]/test_client
test_client -c [sourcecode path]/cpp/conf/server_config.yaml
...
...
cpp/cmake/DefineOptions.cmake
浏览文件 @
3367c154
...
...
@@ -71,7 +71,7 @@ define_option(MEGASEARCH_WITH_FAISS "Build with FAISS library" ON)
define_option
(
MEGASEARCH_WITH_FAISS_GPU_VERSION
"Build with FAISS GPU version"
ON
)
define_option_string
(
MEGASEARCH_FAISS_GPU_ARCH
"Specifying which GPU architectures to build against"
"-gencode=arch=compute_61,code=sm_61"
)
"-gencode=arch=compute_
35,code=sm_35 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_
61,code=sm_61"
)
define_option
(
MEGASEARCH_WITH_LAPACK
"Build with LAPACK library"
ON
)
...
...
cpp/cmake/ThirdPartyPackages.cmake
浏览文件 @
3367c154
...
...
@@ -220,7 +220,7 @@ endif()
if
(
DEFINED ENV{MEGASEARCH_FAISS_URL}
)
set
(
FAISS_SOURCE_URL
"$ENV{MEGASEARCH_FAISS_URL}"
)
else
()
set
(
FAISS_SOURCE_URL
"https://github.com/
JinHai-CN
/faiss/archive/
${
FAISS_VERSION
}
.tar.gz"
)
set
(
FAISS_SOURCE_URL
"https://github.com/
facebookresearch
/faiss/archive/
${
FAISS_VERSION
}
.tar.gz"
)
endif
()
if
(
DEFINED ENV{MEGASEARCH_GTEST_URL}
)
...
...
cpp/thirdparty/versions.txt
浏览文件 @
3367c154
...
...
@@ -26,7 +26,7 @@
BOOST_VERSION=1.70.0
BZIP2_VERSION=1.0.6
EASYLOGGINGPP_VERSION=v9.96.7
FAISS_VERSION=
master
FAISS_VERSION=
v1.5.2
GTEST_VERSION=1.8.1
LAPACK_VERSION=v3.8.0
LZ4_VERSION=v1.9.1
...
...
@@ -49,7 +49,7 @@ DEPENDENCIES=(
"MEGASEARCH_BOOST_URL boost-${BOOST_VERSION}.tar.gz https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION//./_}.tar.gz"
"MEGASEARCH_BZIP2_URL bzip2-${BZIP2_VERSION}.tar.gz https://fossies.org/linux/misc/bzip2-${BZIP2_VERSION}.tar.gz"
"MEGASEARCH_EASYLOGGINGPP_URL easyloggingpp-${EASYLOGGINGPP_VERSION}.tar.gz https://github.com/zuhd-org/easyloggingpp/archive/${EASYLOGGINGPP_VERSION}.tar.gz"
"MEGASEARCH_FAISS_URL faiss-${FAISS_VERSION}.tar.gz https://github.com/
JinHai-CN
/faiss/archive/${FAISS_VERSION}.tar.gz"
"MEGASEARCH_FAISS_URL faiss-${FAISS_VERSION}.tar.gz https://github.com/
facebookresearch
/faiss/archive/${FAISS_VERSION}.tar.gz"
"MEGASEARCH_GTEST_URL gtest-${GTEST_VERSION}.tar.gz https://github.com/google/googletest/archive/release-${GTEST_VERSION}.tar.gz"
"MEGASEARCH_LAPACK_URL lapack-${LAPACK_VERSION}.tar.gz https://github.com/Reference-LAPACK/lapack/archive/${LAPACK_VERSION}.tar.gz
"MEGASEARCH_LZ4_URL lz4-${LZ4_VERSION}.tar.gz https://github.com/lz4/lz4/archive/${LZ4_VERSION}.tar.gz"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录