misc: update build setup (#2306)

This commit is contained in:
Yineng Zhang
2024-12-02 02:03:49 +08:00
committed by GitHub
parent 7301a39b13
commit 28bc60dcab
5 changed files with 46 additions and 1 deletions

19
sgl-kernel/Makefile Normal file
View File

@@ -0,0 +1,19 @@
.PHONY: tree ln install build clean test
tree:
@tree --prune -I "__pycache__|*.egg-info|*.so|build"
ln:
@rm -rf build && cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_CUDA_COMPILER=nvcc -B build && rm -rf compile_commands.json && ln -s build/compile_commands.json compile_commands.json
install:
@pip install -e .
build:
@python3 setup.py bdist_wheel
clean:
@rm -rf build dist *.egg-info
test:
@pytest tests/