Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python binding of Triton server C API #265

Merged
merged 10 commits into from
Sep 19, 2023
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,25 @@ export(
)

export(PACKAGE TritonCore)

FetchContent_Declare(
Tabrizian marked this conversation as resolved.
Show resolved Hide resolved
pybind11
GIT_REPOSITORY "https://github.com/pybind/pybind11"
# COMMIT ID for v2.10.0
GIT_TAG "aa304c9c7d725ffb9d10af08a3b34cb372307020"
GIT_SHALLOW ON
)
FetchContent_MakeAvailable(pybind11)
set(
PYTHON_BINDING_SRCS
python/binding/tritonserver_pybind.cc
)

pybind11_add_module(triton_bindings SHARED ${PYTHON_BINDING_SRCS})
Tabrizian marked this conversation as resolved.
Show resolved Hide resolved
target_link_libraries(
triton_bindings
Tabrizian marked this conversation as resolved.
Show resolved Hide resolved
PRIVATE
triton-core-serverapi # from repo-core
triton-core-serverstub # from repo-core
)
target_compile_features(triton_bindings PRIVATE cxx_std_17)
Tabrizian marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading