Skip to content

Commit

Permalink
fix: set runtime path (#2466)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyncs authored Dec 12, 2024
1 parent dedaf8c commit 2673fa2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release-pypi-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ on:
- sgl-kernel/pyproject.toml
workflow_dispatch:

concurrency:
group: release-pypi-kernel-${{ github.ref }}
cancel-in-progress: true

jobs:
build-wheels:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
cuda-version: ['12.1']

steps:
Expand Down
2 changes: 1 addition & 1 deletion sgl-kernel/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sgl-kernel"
version = "0.0.2"
version = "0.0.2.post4"
description = "Kernel Library for SGLang"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
2 changes: 2 additions & 0 deletions sgl-kernel/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def update_wheel_platform_tag():
],
"cxx": ["-O3"],
},
libraries=["c10", "torch", "torch_python"],
extra_link_args=["-Wl,-rpath,$ORIGIN/../../torch/lib"],
)
],
cmdclass={"build_ext": BuildExtension},
Expand Down

0 comments on commit 2673fa2

Please sign in to comment.