从源码编译安装sgl-kernel

1.安装依赖包

需要cmake>3.26,和一些package

sudo apt install -y libnuma-dev libssl-dev

1
2
3
4
5
6
7
8
wget https://github.com/Kitware/CMake/releases/download/v4.2.2/cmake-4.2.2.tar.gz .
e cmake-*.tar.gz
e cmake-4.2.2.tar.gz
cd cmake-4.2.2
cmake -S . -B build && cmake --build build
cmake --install build
sudo apt install cmake # 卸载系统的cmake
cmake --version

2.编译源码并安装

1
2
cd sgl-kernel
make build