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:
sudo yum install -y gcc-c++ python3-devel make cmake
Build the shared library. Use the configuration template ``cmake/config.cmake``.
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.
Create conda environment for development, run:
* CPU-only build::
.. code:: bash
mkdir build
cd build
cmake ..
make -j4
bash script/create_dev_conda_env.sh -h
* CUDA build::
Build the shared library, run:
.. code:: bash
mkdir build
cd build
cmake -DUSE_CUDA=ON ..
make -j4
bash script/build_dgl.sh -h
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