"git@developer.sourcefind.cn:change/sglang.git" did not exist on "40d9b8acce88ae8abd4e48a6f5c09f409e7b41c8"
Unverified Commit 8c71628e authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Misc] Update build from source doc to use the script in linux. (#5537)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent 89309888
...@@ -60,25 +60,17 @@ For Fedora/RHEL/CentOS users, run: ...@@ -60,25 +60,17 @@ For Fedora/RHEL/CentOS users, run:
sudo yum install -y gcc-c++ python3-devel make cmake sudo yum install -y gcc-c++ python3-devel make cmake
Build the shared library. Use the configuration template ``cmake/config.cmake``. Create conda environment for development, run:
Copy it to either the project directory or the build directory and change the
configuration as you wish. For example, change ``USE_CUDA`` to ``ON`` will
enable a CUDA build. You could also pass ``-DKEY=VALUE`` to the cmake command
for the same purpose.
* CPU-only build:: .. code:: bash
mkdir build bash script/create_dev_conda_env.sh -h
cd build
cmake ..
make -j4
* CUDA build:: Build the shared library, run:
mkdir build .. code:: bash
cd build
cmake -DUSE_CUDA=ON .. bash script/build_dgl.sh -h
make -j4
Finally, install the Python binding. Finally, install the Python binding.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment