From 616fd13612edfcbf2baf46b372d214f697a85fe7 Mon Sep 17 00:00:00 2001 From: Lutkin Wang Date: Thu, 19 Mar 2020 10:17:31 +0800 Subject: [PATCH] Add more information to INSTALL.md (#1694) * [skip ci] Update README_CN.md Signed-off-by: Lutkin Wang * [skip ci] Update INSTALL.md. Signed-off-by: Lutkin Wang --- INSTALL.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index f2ca13e24f..1e3d8b06a2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -188,19 +188,41 @@ $ cd ./milvus/core ### Step 4 Compile Milvus in the container -If you are using a CPU-only image, compile it like this: +If you are using a CPU-only image: + +1. run `build.sh`: ```shell $ ./build.sh -t Release ``` -If you are using a GPU-enabled image, you need to add a `-g` parameter: +2. Start Milvus server: + +```shell +$ ./start_server.sh +``` + +If you are using a GPU-enabled image: + +1. Add cuda library path to `LD_LIBRARY_PATH`: + +```shell +$ export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH +``` + +2. Add cuda binary path to `PATH`: + +```shell +$ export PATH=/usr/local/cuda/bin:$PATH +``` + +3. Add a `-g` parameter to run `build.sh`: ```shell $ ./build.sh -g -t Release ``` -Then start Milvus server: +4. Start Milvus server: ```shell $ ./start_server.sh