diff --git a/INSTALL.md b/INSTALL.md index f2ca13e24fc3d6fbbb072ada9b9fca9ca647d911..1e3d8b06a2d35092d06bbb955c5ec91e157e724c 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