fix: set runtime path (#2466)
This commit is contained in:
6
.github/workflows/release-pypi-kernel.yml
vendored
6
.github/workflows/release-pypi-kernel.yml
vendored
@@ -8,12 +8,16 @@ on:
|
|||||||
- sgl-kernel/pyproject.toml
|
- sgl-kernel/pyproject.toml
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: release-pypi-kernel-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-wheels:
|
build-wheels:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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']
|
cuda-version: ['12.1']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "sgl-kernel"
|
name = "sgl-kernel"
|
||||||
version = "0.0.2"
|
version = "0.0.2.post4"
|
||||||
description = "Kernel Library for SGLang"
|
description = "Kernel Library for SGLang"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ setup(
|
|||||||
],
|
],
|
||||||
"cxx": ["-O3"],
|
"cxx": ["-O3"],
|
||||||
},
|
},
|
||||||
|
libraries=["c10", "torch", "torch_python"],
|
||||||
|
extra_link_args=["-Wl,-rpath,$ORIGIN/../../torch/lib"],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
cmdclass={"build_ext": BuildExtension},
|
cmdclass={"build_ext": BuildExtension},
|
||||||
|
|||||||
Reference in New Issue
Block a user